Sha256: f88cc97e57f1be9526996f3e271f6f825ef0f93975d2dd22cf82ec6904527cf0
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
<%- attributes.each do |attribute| -%> <p> <b><%%= <%= i18n_t_a(singular_table_name, attribute.name) %> %>:</b> <%- if @beautiful_attributes.include?(attribute.name + ':price') -%> <%%= number_to_currency(@<%= singular_table_name %>.<%= attribute.name %>) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') -%> <%%= t((@<%= singular_table_name %>.<%= attribute.name %> ? "yes".to_sym : "no".to_sym)) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%> <%%= (@<%= singular_table_name %>.<%= attribute.name %>.nil? ? "" : @<%= singular_table_name %>.<%= attribute.name %>.caption) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':color') -%> <span class="overview-color" style="background-color:<%%= @<%= singular_table_name %>.<%= attribute.name %> %>;"> </span> <%- else -%> <%%= @<%= singular_table_name %>.<%= attribute.name %> %> <%- end -%> </p> <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beautiful_scaffold-2.0.3 | lib/generators/templates/app/views/partials/_show_field.html.erb |
beautiful_scaffold-2.0.2 | lib/generators/templates/app/views/partials/_show_field.html.erb |