Oliver Günther 8 years ago
parent 28f9ef1d37
commit af397390e0
  1. 9
      app/views/my_projects_overviews/_block.html.erb

@ -25,13 +25,12 @@ See doc/COPYRIGHT.md for more details.
<% content_for block_name_id do %>
<div class="box-actions">
<% if User.current.allowed_to?(:remove_block, nil, global: true) %>
<%= link_to '', {
<%= link_to '', { action: "remove_block", block: block_name },
remote: true,
method: :post,
confirm: l(:label_confirm_delete),
url: { action: "remove_block", block: block_name },
html: { class: "icon icon-close", title: l(:button_delete) }
}
%>
class: "icon icon-close",
title: l(:button_delete) %>
<% end %>
</div>
<% end %>

Loading…
Cancel
Save