Sha256: 970e4815c0c7f8843ec3fe6fa15b60c124158c3cf27b73be3154a2bce6afcf30

Contents?: true

Size: 704 Bytes

Versions: 5

Compression:

Stored size: 704 Bytes

Contents

<%- if resources_instance_variable.any? -%>
<table class="list" id="<%= resources_name %>_list">
	<tr>
		<%- resource_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_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 %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-2.1.rc6 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/resources/_table.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/resources/_table.html.erb