Sha256: e2fffbce6ae83c7a275b12cf8113cf554c563cf887b4a4243695457426fc3c3c
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
<tr class="<%= cycle('even', 'odd') %>"> <%- resource_handler.attributes.each do |attribute| -%> <%- if attribute[:type] == :boolean -%> <td class="center"> <% attr_value = resource.send(attribute[:name]) %> <%= attr_value.blank? ? '' : render_icon(attr_value) -%> </td> <%- elsif attribute[:type] == :integer || attribute[:type] == :float || attribute[:type] == :decimal -%> <td class="right"><%= resource.send(attribute[:name]) -%></td> <%- else -%> <td><%= resource.send(attribute[:name]) -%></td> <%- end -%> <%- end -%> <td class="tools"> <%- permitted_to?(:destroy, resource_permission_scope) do -%> <%= link_to_confirmation_window( '', t("Are you sure?"), resource_path(resource), :title => t("Delete"), :class => "icon destroy", :id => "delete_#{resource_handler.model_name}_#{resource.id}" ) -%> <%- end -%> <%- permitted_to?(:edit, resource_permission_scope) do -%> <%= link_to_overlay_window( '', edit_resource_path(resource), { :title => t("Edit") }, { :class => "icon edit", :title => t("Edit") } ) -%> <%- end -%> </td> </tr>
Version data entries
8 entries across 8 versions & 1 rubygems