Sha256: 3a831dba19684cbe767f9cc3b2be1ec2ef4728f48f25f9e107a74724724ef83c
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
<%- attributes.each do |attribute| -%> <td <%%= visible_column("<%= singular_table_name %>", "<%= attribute.name %>") %> class="bs-col-<%= attribute.name %> <%%= align_attribute("<%= attribute.type %>") %>"> <%- if @beautiful_attributes.include?(attribute.name + ':price') -%> <%%= number_to_currency(<%= singular_table_name %>.<%= attribute.name %>, :locale => I18n.locale) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') -%> <%%= t((<%= singular_table_name %>.<%= attribute.name %> ? "yes" : "no").to_sym) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':references') -%> <%% if !<%= singular_table_name %>.<%= attribute.name %>_id.nil? %> <%%= link_to <%= singular_table_name %>.<%= attribute.name %>.caption, <%= namespace_for_route %><%= attribute.name %>_path(<%= singular_table_name %>.<%= attribute.name %>_id) %> <%% else %> <%%= t(:any, :default => "Any") %> <%% end %> <%- 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 -%> </td> <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beautiful_scaffold-2.0.3 | lib/generators/templates/app/views/partials/_index_column.html.erb |
beautiful_scaffold-2.0.2 | lib/generators/templates/app/views/partials/_index_column.html.erb |