mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
Fix that "View differences" buttons on RepositoriesController#diff page does not work due to r20147 (#33896, #33383).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@20336 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dfebd03379
commit
fb29705ae8
@ -1,3 +1,8 @@
|
||||
<%= form_tag(
|
||||
{:controller => 'repositories', :action => 'diff', :id => project,
|
||||
: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 %>
|
||||
<p>
|
||||
@ -21,11 +26,6 @@
|
||||
:space => graph_space
|
||||
}
|
||||
end %>
|
||||
<%= form_tag(
|
||||
{:controller => 'repositories', :action => 'diff', :id => project,
|
||||
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
|
||||
:method => :get
|
||||
) do %>
|
||||
<table class="list changesets">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
@ -53,10 +53,10 @@ end %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if show_diff %>
|
||||
<p>
|
||||
<%= submit_tag(l(:label_view_diff), :name => nil) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user