From d9c6249a9cdf97010a992fd2c52e68c64f6a4e99 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 15 Oct 2020 14:39:09 +0000 Subject: [PATCH] Incorrect position of the revision graph (#33896, #33383). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20147 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/_revisions.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/repositories/_revisions.html.erb b/app/views/repositories/_revisions.html.erb index 95c6898a1..c7aad5f1e 100644 --- a/app/views/repositories/_revisions.html.erb +++ b/app/views/repositories/_revisions.html.erb @@ -1,3 +1,9 @@ +<% show_diff = revisions.size > 1 && User.current.allowed_to?(:browse_repository, @repository.project) %> +<% if show_diff %> +

+ <%= submit_tag(l(:label_view_diff), :name => nil) %> +

+<% end %>
<% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %> <%= if show_revision_graph && revisions && revisions.any? @@ -20,12 +26,6 @@ end %> :repository_id => @repository.identifier_param, :path => to_path_param(path)}, :method => :get ) do %> -<% show_diff = revisions.size > 1 && User.current.allowed_to?(:browse_repository, @repository.project) %> -<% if show_diff %> -

- <%= submit_tag(l(:label_view_diff), :name => nil) %> -

-<% end %> @@ -53,10 +53,10 @@ end %> <% end %>
#
+<% end %> +
<% if show_diff %>

<%= submit_tag(l(:label_view_diff), :name => nil) %>

<% end %> -<% end %> - -- 2.39.5