Sha256: 0a5322bdb05e64637c5e75f103a7964f6afc374bf76fc3f29a379f6462d6f0e6

Contents?: true

Size: 934 Bytes

Versions: 20

Compression:

Stored size: 934 Bytes

Contents

<% obj = local_assigns.fetch(:obj) %>
<% if check_presence_polymorphic_path(url_namespace(obj), :get) and can?(:show, base_class) %>
  <%= link_to fa_icon("eye"), polymorphic_path(url_namespace(obj)),
              title: t(:show, model: base_class.model_name.human),
              class: "show" %>
<% end %>

<% if can?(:edit, base_class) %>
  <%= link_to fa_icon("edit"), edit_polymorphic_path(url_namespace(obj)),
              title: t(:edit),
              class: "edit" %>
<% end %>

<% if check_presence_polymorphic_path(url_namespace(obj)+[:clone], :get, action: :new) and can?(:clones, base_class) %>
  <%= link_to_dialog fa_icon("clone"), new_polymorphic_path(url_namespace(obj)+[:clone]),
              title: t(:clone, model: base_class.model_name.human),
              class: "clone" %>
<% end %>




<% if can?(:destroy, base_class) %>
  <%= delete_button polymorphic_path(url_namespace(obj)), icon: "trash" %>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.5 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.4 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.3 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.2 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.1 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.1.0 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.2.2 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-3.0.0 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.2.1 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.2.0 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.1.2 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.1.1 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.1.0 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.0.3 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.0.2 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.0.1 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-2.0.0 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-0.1.9 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
alchemy-custom-model-0.1.7 app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb