Sha256: c49cd112a68134aef886bb37de2aacabe2697a28e14d91acf6c5c162b42f53ac
Contents?: true
Size: 1.01 KB
Versions: 13
Compression:
Stored size: 1.01 KB
Contents
<h3><%= t("#{type}.index.title") %></h3> <% if collection.none? %> <p><%= I18n.t("#{type}.index.empty_collection")%></p> <% else %> <% collection.each do |resource| %> <table class="table table-striped"> <thead> <tr class="<%= cycle('odd', 'even') %>"> <th> <% (columns.is_a?(Hash) ? columns.keys : columns).each do |column| %> <strong><%= t( "attributes.#{column}", default: t("activerecord.attributes.#{type.singularize}.#{column}") ) %>:</strong> <%= table_cell column, resource, columns.is_a?(Hash) ? columns[column] : nil %> <% end %> <% if resource.respond_to? :state_events %> <%= render partial: 'shared/resource/actions', locals: { type: type, resource: resource } %> <% end %> </th> </tr> </thead> </table> <table class="table table-striped"> <tbody> <tr class="<%= cycle('odd', 'even') %>"> <td> <%= resource.send(content_column) %> </td> </tr> </tbody> </table> <% end %> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems