Sha256: ad69280288cb8fe142cc3dd98808a30f57e3d1205babd71273ae752f28b3205e

Contents?: true

Size: 795 Bytes

Versions: 8

Compression:

Stored size: 795 Bytes

Contents

<%- if resources_instance_variable.any? -%>
<table class="list" id="<%= resource_handler.resources_name %>_list">
  <tr>
    <%- resource_handler.attributes.each do |attribute| -%>
    <%- if attribute[:type] == :boolean -%>
    <th class="center">
    <%- elsif attribute[:type] == :integer || attribute[:type] == :float || attribute[:type] == :decimal -%>
    <th class="right">
    <%- else -%>
    <th>
    <%- end -%>
      <%= resource_handler.model.human_attribute_name(attribute[:name]) %>
    </th>
    <%- end -%>
    <th class="tools"></th>
  </tr>
  <%= render_resources %>
</table>
<%- elsif params[:query] -%>
<p><%= t('Nothing found') %></p>
<%- end -%>

<%= render 'alchemy/admin/partials/pagination_links', :items => resources_instance_variable, :scope => resource_url_proxy %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc13 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/resources/_table.html.erb