From 08b6d7b6547e10fcd081795d180e15e0a5835d37 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 1 Dec 2011 23:46:26 +0000 Subject: [PATCH] Merged r8022 from trunk scm: git: mercurial: not show revision graph in sub directory. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8023 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/_revisions.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb index 2bc72f84d..ea55e4bed 100644 --- a/app/views/repositories/_revisions.html.erb +++ b/app/views/repositories/_revisions.html.erb @@ -1,8 +1,9 @@ +<% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %> <% form_tag({:controller => 'repositories', :action => 'diff', :id => @project, :path => to_path_param(path)}, :method => :get) do %> -<% if @repository.supports_revision_graph? %> - +<% if show_revision_graph %> + <% end %> @@ -16,7 +17,7 @@ <% line_num = 1 %> <% revisions.each do |changeset| %> -<% if @repository.supports_revision_graph? %> +<% if show_revision_graph %> <% if line_num == 1 %> -<% if @repository.supports_revision_graph? %> +<% if show_revision_graph %>
#
<% href_base = Proc.new {|x| url_for(:controller => 'repositories', @@ -39,7 +40,7 @@ <%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %> <%= format_time(changeset.committed_on) %> <%= h truncate(changeset.author.to_s, :length => 30) %> <%= textilizable(truncate(truncate_at_line_break(changeset.comments, 0), :length => 90)) %>