summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-06-24 01:53:02 +0000
committerGo MAEDA <maeda@farend.jp>2018-06-24 01:53:02 +0000
commit4b552f4c081d727a14b377fb2108c8f329ebffbf (patch)
treec358ed8c22f6174e71c2d86e8d9dd8d4bcdbef80 /app/views
parent7dbd9e8c3b6e730121f10828f4ebc1c73e0a9bab (diff)
downloadredmine-4b552f4c081d727a14b377fb2108c8f329ebffbf.tar.gz
redmine-4b552f4c081d727a14b377fb2108c8f329ebffbf.zip
Move edit and delete buttons for queries to the buttons section (#28602).
Patch by Bernhard Rohloff. git-svn-id: http://svn.redmine.org/redmine/trunk@17413 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/gantts/show.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index 6e5651fae..90f6a85fa 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -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>
@@ -80,6 +76,10 @@
"$('#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 %>