Project

General

Profile

Defect #33896 » fix-view-differences-buttons.patch

Mizuki ISHIKAWA, 2020-11-11 05:12

View differences:

app/views/repositories/_revisions.html.erb
<%= 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>
......
: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>
......
<% end %>
</tbody>
</table>
<% end %>
</div>
<% if show_diff %>
<p>
<%= submit_tag(l(:label_view_diff), :name => nil) %>
</p>
<% end %>
<% end %>
(5-5/5)