Sha256: cfeedd6d3cbc31a3e4d0e5780dc9e177ec72348841a169c917904413e2a77cb0
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
.panel-heading: .panel-title: h5 <%= @name.human.pluralize %> .panel-body = link_to 'New <%= @name.human.downcase %>', new_cms_<%= @name.element %>_path table.table thead tr th Id <% @type.attributes.each do |attribute| -%> th <%= attribute.name.humanize %> <% end -%> th tbody - @<%= @name.collection %>.each do |<%= @name.element %>| tr td= <%= @name.element %>.id <% @type.attributes.each do |attribute| -%> <% if attribute.reference? -%> td - if <%= @name.element %>.<%= attribute.name %>.present? = link_to <%= @name.element %>.<%= attribute.name %>.<%= attribute.options['reference_label'] %>, cms_<%= attribute.reference_to.model_name.element %>_path(<%= @name.element %>.<%= attribute.name %>) <% elsif attribute.format.file? -%> td img src: <%= @name.element %>.<%= attribute.name %> <% else -%> td= <%= @name.element %>.<%= attribute.name %> <% end -%> <% end -%> td span<>= link_to 'Edit', edit_cms_<%= @name.element %>_path(<%= @name.element %>) span<>= link_to 'Destroy', cms_<%= @name.element %>_path(<%= @name.element %>), confirm: 'are you sure?', method: 'delete' = paginate @<%= @name.collection %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
honey-cms-0.5.1 | lib/generators/cms/templates/views/index.html.slim |