Sha256: cdcb4fbefe6ecdda0adc0e23f040ed18db42f99be07b34660b352e91c58fa4d9
Contents?: true
Size: 622 Bytes
Versions: 45
Compression:
Stored size: 622 Bytes
Contents
<% # This 'unless' can be removed if :name is no longer assumed to be a default attribute. unless attributes.find {|attr| attr.name == 'name'} %><p><b>Name:</b> <%%= @content_block.name %></p> <% end %> <%- for attribute in attributes -%> <%- case attribute.type when :attachment -%> <p><b>Attachment:</b> <%%= link_to @content_block.attachment_file_path, @content_block.attachment_link %></p> <%- when :category -%> <p><b>Category:</b> <%%= @content_block.category_name %></p> <%- else -%> <p><b><%= attribute.name.titleize %>:</b> <%%= @content_block.<%= attribute.name %> %></p> <%- end -%> <% end %>
Version data entries
45 entries across 45 versions & 10 rubygems