Sha256: 11818c2d98774137073516f5a3ad57c16de80deb9c650a65c4d54fc438dbb45f

Contents?: true

Size: 559 Bytes

Versions: 10

Compression:

Stored size: 559 Bytes

Contents

<div class="btn-group btn-group-sm pull-right">
  <% if policy(resource).show? %>
    <%= link_to translate_scoped("actions.show"), resource, class: "btn btn-default" %>
  <% end %>
  <% if policy(resource).edit? %>
    <%= link_to translate_scoped("actions.edit"), [:edit, resource], class: "btn btn-default"  %>
  <% end %>
  <% if policy(resource).destroy? %>
    <%= link_to translate_scoped("actions.destroy"), resource, method: :delete,
      class: "btn btn-danger", data: { confirm: translate_scoped("actions.confirm_message") } %>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
godmin-1.2.0 app/views/godmin/resource/columns/_actions.html.erb
godmin-1.1.0 app/views/godmin/resource/columns/_actions.html.erb
godmin-1.0.0 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.12.4 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.12.3 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.12.2 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.12.1 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.12.0 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.11.2 app/views/godmin/resource/columns/_actions.html.erb
godmin-0.11.1 app/views/godmin/resource/columns/_actions.html.erb