Sha256: 1cc70bd6f9810080cd093fec81d805f1a270bb13dca6fd7f895cc8a65519ddcd

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

%h2
  <%= singular_name %>

<% attributes.each do |attribute| -%>
%p
  <% if attribute.type == :text %>
  = @<%= singular_name %>.<%= attribute.name %>.html_safe
  <% elsif attribute.type == :asset %>
  %img{:src => "#{@<%= singular_name %>.<%= attribute.name %>.url_for(:wysiwyg_medium_size)}"}
  <% else %>
  = @<%= singular_name %>.<%= attribute.name %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 lib/generators/gluttonberg/resource/templates/public_view_show.html.haml
gluttonberg-core-3.0.1 lib/generators/gluttonberg/resource/templates/public_view_show.html.haml
gluttonberg-core-3.0.0 lib/generators/gluttonberg/resource/templates/public_view_show.html.haml