Sha256: b6422607d7f088829ce4e2816f00ed6f4a36a4b99bbe4a0ba27cc3249c878460

Contents?: true

Size: 824 Bytes

Versions: 31

Compression:

Stored size: 824 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, current_location_params) %>
    <% end %>
    <% if can?(:edit, resource) %>
    <%= link_to_dialog(
      '',
      edit_resource_path(resource, current_location_params),
      {
        title: Alchemy.t('Edit'),
        size: resource_window_size
      },
      {
        class: 'icon edit',
        title: Alchemy.t('Edit')
      }
    ) %>
    <% end %>
  </td>
</tr>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/resources/_resource.html.erb