Sha256: a95e96c79042d7939ac91fd0a18bf44c9ec0146b32513e963207d9026ddb330b
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
<%- attributes.each do |attribute| -%> <td <%%= visible_column("<%= singular_table_name %>", "<%= attribute.name %>") %> class="col-<%= attribute.name %> <%%= align_attribute("<%= attribute.type %>") %>"> <% if @beautiful_attributes.include?(attribute.name + ':price') then %> <%%= number_to_currency(<%= singular_table_name %>.<%= attribute.name %>) %> <% elsif @beautiful_attributes.include?(attribute.name + ':richtext') then %> <%%= truncate(<%= singular_table_name %>.<%= attribute.name + "_fulltext" %>, :length => 30) %> <% elsif @beautiful_attributes.include?(attribute.name + ':boolean') then %> <%%= t((<%= singular_table_name %>.<%= attribute.name %> ? "yes" : "no").to_sym) %> <% elsif @beautiful_attributes.include?(attribute.name + ':references') then %> <%% if not <%= singular_table_name %>.<%= attribute.name %>_id.nil? then %> <%%= link_to "#" + <%= singular_table_name %>.<%= attribute.name %>_id.to_s, <%= namespace_for_route %><%= attribute.name %>_path(<%= singular_table_name %>.<%= attribute.name %>_id) %> <%% else %> <%%= t(:any, :default => "Any") %> <%% end %> <% else %> <%%= <%= singular_table_name %>.<%= attribute.name %> %> <% end %> </td> <%- end -%>
Version data entries
4 entries across 4 versions & 1 rubygems