Sha256: d6811a2a90ba687392672568cdd240a12d9a5151bc64ab4cfe1a0154c624a12e

Contents?: true

Size: 1.05 KB

Versions: 24

Compression:

Stored size: 1.05 KB

Contents

<tr class="<%= cycle('even', 'odd') %>">
  <% if local_assigns[:icon] %>
    <td class="icon"><%= render_icon(local_assigns[:icon], size: "xl") %></td>
  <% end %>
<% resource_handler.sorted_attributes.each do |attribute| %>
  <td class="<%= attribute[:type] %> <%= attribute[:name] %>">
  <% if attribute[:type] == :boolean %>
    <%= resource.public_send(attribute[:name]) ? render_icon(:check) : nil %>
  <% else %>
    <%= render_attribute(resource, attribute) %>
  <% end %>
  </td>
<% end %>
  <td class="tools">
  <% if can?(:destroy, resource) %>
    <sl-tooltip content="<%= Alchemy.t("Delete") %>">
      <%= delete_button resource_path(resource, search_filter_params) %>
    </sl-tooltip>
  <% end %>
  <% if can?(:edit, resource) %>
    <sl-tooltip content="<%= Alchemy.t("Edit") %>">
      <%= link_to_dialog render_icon(:edit),
        edit_resource_path(resource, search_filter_params),
        {
          title: Alchemy.t('Edit'),
          size: resource_window_size
        },
        class: "icon_button" %>
      <% end %>
    </sl-tooltip>
  </td>
</tr>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
alchemy_cms-7.2.7 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/resources/_resource.html.erb