Sha256: eed03e033a0e850e1884aa447eea0f7f6a85a07d32e1903d1c429d91e4b9fe7f

Contents?: true

Size: 794 Bytes

Versions: 9

Compression:

Stored size: 794 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

9 entries across 9 versions & 1 rubygems

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