File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change
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 %>
1
7
< div class ="autoscroll ">
2
8
<% show_revision_graph = ( @repository . supports_revision_graph? && path . blank? ) %>
3
9
<%= if show_revision_graph && revisions && revisions . any?
@@ -20,12 +26,6 @@ end %>
20
26
:repository_id => @repository . identifier_param , :path => to_path_param ( path ) } ,
21
27
:method => :get
22
28
) 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 %>
29
29
< table class ="list changesets ">
30
30
< thead > < tr >
31
31
< th > #</ th >
@@ -53,10 +53,10 @@ end %>
53
53
<% end %>
54
54
</ tbody >
55
55
</ table >
56
+ <% end %>
57
+ </ div >
56
58
<% if show_diff %>
57
59
< p >
58
60
<%= submit_tag ( l ( :label_view_diff ) , :name => nil ) %>
59
61
</ p >
60
62
<% end %>
61
- <% end %>
62
- </ div >
You can’t perform that action at this time.
0 commit comments