<% if dashboard.editable_by?(current_user) %>
<%= link_to message('dashboard.configure_widgets'), {:controller => :dashboard, :action => :configure, :did => dashboard.id, :id => (resource_id unless dashboard.global?)},
:id => "configure-#{u dashboard.name}", :class => 'link-action' %>
- |
<%= link_to message('edit'), {:action => :edit_form, :id => dashboard.id, :resource => resource_id},
:id => "edit-#{u dashboard.name}", :class => 'open-modal link-action' %>
<% if can_be_disabled %>
- |
<%= link_to message('delete'), {:action => :delete_form, :id => dashboard.id, :resource => resource_id},
:id => "delete-#{u dashboard.name}", :class => 'open-modal link-action' %>
- |
<% end %>
<% end %>
<% if can_be_disabled %>
<td>
<%= link_to message('edit'), {:action => :create_form, :id => resource.id, :key => resource.key, :name => resource.name},
{:id => "edit-#{u resource.key}", :class => 'open-modal link-action'} %>
- |
<%= link_to message('delete'), {:action => :delete, :id => resource.id},
{:id => "delete-#{u resource.key}", :confirm => message('are_you_sure'), :class => 'link-action link-red', :method => 'delete'} %>
</td>