]> source.dussan.org Git - redmine.git/commitdiff
scm: remove "View all revisions" in sub directory (#7984).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Mar 2011 02:40:13 +0000 (02:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Mar 2011 02:40:13 +0000 (02:40 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5223 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/show.rhtml

index 0513bd21682be6995be05de06cb55cc1d9762978..fc148e8d19239490ac7c6bb347330cf9a6ab0096 100644 (file)
                           :revisions => @changesets, :entry => nil }%>
 <%   end %>
 <p>
-<%   if @repository.supports_all_revisions? %>
+<%
+     has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
+     sep = ''
+ %>
+<%   if @repository.supports_all_revisions? && @path.blank? %>
 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
+<%   sep = '|' %>
 <%   end %>
 <%
-     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),
+<%= sep %>
+<%=
+    link_to l(:label_view_revisions),
                    :action => 'changes',
                    :path   => to_path_param(@path),
                    :id     => @project,