Sha256: 3a0008a49bcc5c589c7c65a8be1a4cd64285b7ae2b9e5e7a19bb01cc25c3417a

Contents?: true

Size: 760 Bytes

Versions: 27

Compression:

Stored size: 760 Bytes

Contents

<tr class="<%= cycle('even', 'odd') %>">
<% resource_handler.attributes.each do |attribute| %>
  <td class="<%= attribute[:type] %> <%= attribute[:name] %>">
  <% if attribute[:type] == :boolean %>
    <%= render_icon !!resource.send(attribute[:name]) %>
  <% else %>
    <%= render_attribute(resource, attribute) %>
  <% end %>
  </td>
<% end %>
  <td class="tools">
    <% if can?(:destroy, resource) %>
    <%= delete_button resource_path(resource) %>
    <% end %>
    <% if can?(:edit, resource) %>
    <%= link_to_dialog(
      '',
      edit_resource_path(resource),
      {
        title: _t('Edit'),
        size: resource_window_size
      },
      {
        class: 'icon edit',
        title: _t('Edit')
      }
    ) %>
    <% end %>
  </td>
</tr>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/resources/_resource.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/resources/_resource.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/resources/_resource.html.erb