From c9c47e93fdc4a50508a27b0178edd9f152622f8b Mon Sep 17 00:00:00 2001 From: Bernhard Rohloff Date: Fri, 20 Apr 2018 15:18:40 +0200 Subject: [PATCH] align query buttons with other query based views --- app/views/gantts/show.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 8bcdb2d27..447bc9e8a 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -1,9 +1,5 @@ <% @gantt.view = self %>
-<% 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 %>

<%= @query.new_record? ? l(:label_gantt) : @query.name %>

@@ -81,6 +77,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 %>

<% end %> -- 2.14.3