]> source.dussan.org Git - redmine.git/commitdiff
scm: do not display 'View revision' links in subversion if path or revision are nil...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Mar 2011 23:43:33 +0000 (23:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Mar 2011 23:43:33 +0000 (23:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5219 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/show.rhtml

index 7df7d727d4554c4ba92c2b9ac2172613afce2e6b..d51724252696740935ac41784ee4a7d529d76e83 100644 (file)
 <%   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',