Sha256: a3e253b7c6cc3d4fafdc83ba97ee9733830e82f6d8124dbacb44406da91f0aac

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

<tr class="<%= cycle('even', 'odd') %>">
  <%- resource_handler.attributes.each do |attribute| -%>
  <%- if attribute[:type] == :boolean -%>
  <td class="center">
    <% attr_value = render_attribute(resource, attribute[:name]) %>
    <%= attr_value.blank? ? '' : render_icon(attr_value) -%>
  </td>
  <%- elsif attribute[:type] == :integer || attribute[:type] == :float || attribute[:type] == :decimal -%>

  <td class="right"><%= render_attribute(resource, attribute[:name]) -%></td>
  <%- else -%>
  <td>
    <%= render_attribute(resource, attribute[:name]) %>
  </td>
  <%- end -%>
  <%- end -%>
  <td class="tools">
    <%- permitted_to?(:destroy, resource_permission_scope) do -%>
    <%= link_to_confirmation_window(
      '',
      _t("Are you sure?"),
      resource_path(resource),
      :title => _t("Delete"),
      :class => "icon destroy",
      :id => "delete_#{resource_handler.model_name}_#{resource.id}"
    ) -%>
    <%- end -%>
    <%- permitted_to?(:edit, resource_permission_scope) do -%>
    <%= link_to_overlay_window(
      '',
      edit_resource_path(resource),
      {
        :title => _t("Edit"),
        :size => resource_window_size
      },
      {
        :class => "icon edit",
        :title => _t("Edit")
      }
    ) -%>
    <%- end -%>
  </td>
</tr>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.5.3.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.2.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.2.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.0.rc3 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.5.0.b9 app/views/alchemy/admin/resources/_resource.html.erb