Sha256: af8d3d69127f6b9104b435ff9a2b63ff0fa8e5625d6f92a90f63cd650186fa85

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 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")
      },
      {
        :class => "icon edit",
        :title => t("Edit")
      }
    ) -%>
    <%- end -%>
  </td>
</tr>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.rc2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.rc1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.3.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.4.beta2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.3.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.3.rc5 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/resources/_resource.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/resources/_resource.html.erb