From 590cc111fc366ebb625e0c217261ccf12f7e8783 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 26 Mar 2011 02:40:13 +0000 Subject: [PATCH] scm: remove "View all revisions" in sub directory (#7984). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5223 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/show.rhtml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml index 0513bd216..fc148e8d1 100644 --- a/app/views/repositories/show.rhtml +++ b/app/views/repositories/show.rhtml @@ -20,16 +20,21 @@ :revisions => @changesets, :entry => nil }%> <% end %>

-<% if @repository.supports_all_revisions? %> -<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> -<% end %> <% 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 %> +<% 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,