Remove server-rendered action menu from wp view

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/1272/head
Alex Coles 11 years ago
parent 8404d3857b
commit e3258ce109
  1. 23
      app/views/work_packages/index.html.erb

@ -29,29 +29,6 @@ See doc/COPYRIGHT.rdoc for more details.
<%= include_gon %>
<% breadcrumb_paths(l(:label_work_package_plural)) %>
<% if !query.new_record? && query.editable_by?(User.current) %>
<% content_for :action_menu_specific do %>
<%= li_unless_nil link_to(l(:button_edit), {:controller => '/queries', :action => 'edit', :id => query}, :class => 'icon icon-edit') %>
<%= li_unless_nil link_to(l(:button_delete), {:controller => '/queries', :action => 'destroy', :id => query}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-delete') %>
<% end %>
<% unless project.nil? %>
<% content_for :action_menu_more do %>
<% if query.is_public? ? (current_user.allowed_to?(:manage_public_queries, project) || current_user.admin?) : current_user.allowed_to?(:save_queries, project, :global => true) %>
<% if query_menu_item = query.query_menu_item %>
<%= li_unless_nil link_to(l(:button_configure_menu_entry),edit_query_menu_item_path(project, query, query_menu_item)) %>
<%= li_unless_nil link_to(l(:button_delete_menu_entry), query_menu_item_path(project, query, query_menu_item), :method => :delete) %>
<% else %>
<%= li_unless_nil(link_to(l(:button_add_menu_entry), query_menu_items_path(project, query), :method => :create)) %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<h2><%= query.new_record? ? l(:label_work_package_plural) : h(query.name) %></h2>
<div id="work-packages-index" ng-controller="WorkPackagesController">

Loading…
Cancel
Save