Skip to content

Commit d9c6249

Browse files
committed
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
1 parent 1b5c650 commit d9c6249

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/views/repositories/_revisions.html.erb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<% show_diff = revisions.size > 1 && User.current.allowed_to?(:browse_repository, @repository.project) %>
2+
<% if show_diff %>
3+
<p>
4+
<%= submit_tag(l(:label_view_diff), :name => nil) %>
5+
</p>
6+
<% end %>
17
<div class="autoscroll">
28
<% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %>
39
<%= if show_revision_graph && revisions && revisions.any?
@@ -20,12 +26,6 @@ end %>
2026
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
2127
:method => :get
2228
) do %>
23-
<% show_diff = revisions.size > 1 && User.current.allowed_to?(:browse_repository, @repository.project) %>
24-
<% if show_diff %>
25-
<p>
26-
<%= submit_tag(l(:label_view_diff), :name => nil) %>
27-
</p>
28-
<% end %>
2929
<table class="list changesets">
3030
<thead><tr>
3131
<th>#</th>
@@ -53,10 +53,10 @@ end %>
5353
<% end %>
5454
</tbody>
5555
</table>
56+
<% end %>
57+
</div>
5658
<% if show_diff %>
5759
<p>
5860
<%= submit_tag(l(:label_view_diff), :name => nil) %>
5961
</p>
6062
<% end %>
61-
<% end %>
62-
</div>

0 commit comments

Comments
 (0)