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

Version Path
my_admin-0.1.13 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.12 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.11 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.10 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.9 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.8 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.7 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.6 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.5 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.4 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.3 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.2 app/views/my_admin/models/_actions.html.erb
my_admin-0.1.1 app/views/my_admin/models/_actions.html.erb