Sha256: c77b1aa517220810f81f160d28b6f6222ead64043f8103cc210f07b5402120fc

Contents?: true

Size: 799 Bytes

Versions: 16

Compression:

Stored size: 799 Bytes

Contents

<%- attributes.each do |attribute| -%>
  <p>
    <b><%%= <%= i18n_t_a(singular_table_name, attribute.name) %> %>:</b>
    <%- if @beautiful_attributes.include?(attribute.name + ':price') then -%>
      <%%= number_to_currency(@<%= singular_table_name %>.<%= attribute.name %>) %>
    <%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') then -%>
      <%%= t((@<%= singular_table_name %>.<%= attribute.name %> ? "yes".to_sym : "no".to_sym)) %>
    <%- elsif @beautiful_attributes.include?(attribute.name + ':references') then -%>
      <%%= (@<%= singular_table_name %>.<%= attribute.name %>.nil? ? "" : @<%= singular_table_name %>.<%= attribute.name %>.caption) %>
    <%- else -%>
      <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
    <%- end -%>
  </p>
<%- end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beautiful_scaffold-1.0.2 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-1.0.1 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-1.0.0.pre lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.6 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.5 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.4 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.3 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.2 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.1 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc6 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc5 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc4 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc3 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc2 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.rc1 lib/generators/templates/app/views/partials/_show_field.html.erb
beautiful_scaffold-0.3.0.pre lib/generators/templates/app/views/partials/_show_field.html.erb