Sha256: ce0e559a1ece5f64eac062ce404d9c874e62e5547a8fb1602fc85e8c2e90cebe
Contents?: true
Size: 746 Bytes
Versions: 13
Compression:
Stored size: 746 Bytes
Contents
<% if @model.my_admin.can?(:destroy, my_admin_user) or @model.my_admin.can?(:update, my_admin_user) %> <td> <%= link_to(edit_model_link(@application, @model, object), :class => "btn btn-mini btn-inverse") do %> <i class="icon-edit"></i> <%= I18n.t('my_admin.labels.models.edit') %> <% end if @model.my_admin.can?(:update, my_admin_user) %> <%= link_to(show_model_link(@application, @model, object), :method => :delete, :class => "btn btn-mini btn-danger", data: { confirm: I18n.t('my_admin.messages.models.confirm_remove', :model => @model.title)}) do %> <i class="icon-trash"></i> <%= I18n.t('my_admin.labels.models.remove') %> <% end if @model.my_admin.can?(:destroy, my_admin_user) %> </td> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems