]> source.dussan.org Git - redmine.git/commitdiff
Move edit and delete buttons for queries to the buttons section (#28602).
authorGo MAEDA <maeda@farend.jp>
Sun, 24 Jun 2018 01:53:02 +0000 (01:53 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 24 Jun 2018 01:53:02 +0000 (01:53 +0000)
Patch by Bernhard Rohloff.

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

app/views/gantts/show.html.erb

index 6e5651fae0bc61e6146d99dad4909fd15321506c..90f6a85fa65db9b9f47cbab4a75aabb3a57c55ee 100644 (file)
@@ -1,9 +1,5 @@
 <% @gantt.view = self %>
 <div class="contextual">
-<% if !@query.new_record? && @query.editable_by?(User.current) %>
-  <%= link_to l(:button_edit), edit_query_path(@query, :gantt => 1), :class => 'icon icon-edit' %>
-  <%= delete_link query_path(@query, :gantt => 1) %>
-<% end %>
 </div>
 
 <h2><%= @query.new_record? ? l(:label_gantt) : @query.name %></h2>
                          "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit();",
                          :class => 'icon icon-save' %>
   <% end %>
+<% if !@query.new_record? && @query.editable_by?(User.current) %>
+  <%= link_to l(:button_edit), edit_query_path(@query, :gantt => 1), :class => 'icon icon-edit' %>
+  <%= delete_link query_path(@query, :gantt => 1) %>
+<% end %>
 </p>
 </div>
 <% end %>