Sha256: 65bc4fc1b93fdb9e8b35cb2610a931b8a5a543d34f59e652da47a43d6975c0da

Contents?: true

Size: 469 Bytes

Versions: 28

Compression:

Stored size: 469 Bytes

Contents

%h2== Showing <%= @name.human.downcase %> ##{@<%= @name.element %>.id}

%dl
<% @type.attributes.each do |attribute| -%>
  %dt <%= attribute.name.humanize %>
<% if attribute.reference? -%>
  %dd= @<%= @name.element %>.<%= attribute.name %>.try(:<%= attribute.options['reference_label'] %>)
<% elsif attribute.format.text? -%>
  %dd= markdown @<%= @name.element %>.<%= attribute.name %>
<% else -%>
  %dd= @<%= @name.element %>.<%= attribute.name %>
<% end -%>
<% end -%>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
honey-cms-0.2.4 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.2.3 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.2.2 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.2.1 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.2.0 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.1.2 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.1.1 lib/generators/cms/templates/views/show.html.haml
honey-cms-0.1.0 lib/generators/cms/templates/views/show.html.haml