Sha256: 7684f34ee8df1babb773b2d3944e0a3af1eef1cba667f1397ce0c7792a84ed97
Contents?: true
Size: 974 Bytes
Versions: 16
Compression:
Stored size: 974 Bytes
Contents
%h1= t("cms.index_title", plural_name: resource_class.model_name.human(count: 2)) .row-fluid.actions .pull-right.padded = link_to new_resource_path, :class => 'btn btn-primary' do %i.icon-plus-sign.icon-white = t("cms.#{resource_collection_name}.new", plural_name: resource_class.model_name.human, default: t('cms.default.new')) %table.table.table-bordered.table-striped %thead %tr - collection.index_attributes.each do |column_name| %th= collection.human_attribute_name column_name %th %th %tbody - collection.each do |item| %tr - collection.index_attributes.each do |column_name| %td= item.send(column_name) %td= link_to t("cms.edit"), edit_resource_path(item) %td =link_to resource_path(item), method: :delete, data: { confirm: t('cms.are_you_sure') }, class: 'btn btn-small btn-danger' do %i.icon-trash.icon-white =t('cms.destroy') %br
Version data entries
16 entries across 16 versions & 1 rubygems