From 3c619704bf77c133bb410bf5f0eab147172a1b2d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 24 Mar 2011 23:43:33 +0000 Subject: [PATCH] scm: do not display 'View revision' links in subversion if path or revision are nil (#7984). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5219 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/show.rhtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml index 7df7d727..d5172425 100644 --- a/app/views/repositories/show.rhtml +++ b/app/views/repositories/show.rhtml @@ -23,7 +23,11 @@ <% if @repository.supports_all_revisions? %> <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> <% end %> -<% if @repository.supports_directory_revisions? %> +<% + has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) + if @repository.supports_directory_revisions? && + ( has_branches || !@path.blank? || !@rev.blank? ) + %> | <%= link_to l(:label_view_revisions), :action => 'changes',