]> source.dussan.org Git - redmine.git/commitdiff
Fix that "View differences" buttons on RepositoriesController#diff page does not...
authorGo MAEDA <maeda@farend.jp>
Thu, 12 Nov 2020 00:15:49 +0000 (00:15 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 12 Nov 2020 00:15:49 +0000 (00:15 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@20336 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/_revisions.html.erb

index c7aad5f1e10e1f96018abffe54dcda769fbb8a5c..fef43014b4f659c965995355da88dab0c794a9c9 100644 (file)
@@ -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>
             :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 %>