Browse Source

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
tags/4.0.0
Go MAEDA 6 years ago
parent
commit
4b552f4c08
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      app/views/gantts/show.html.erb

+ 4
- 4
app/views/gantts/show.html.erb View 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>
@@ -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 %>

Loading…
Cancel
Save