<%- if pagination? -%> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end -%>
<%- attributes.each do |attribute| -%> <%- end -%> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> "> <%- attributes.each do |attribute| -%> <%- case attribute.type when :boolean -%> <%- when :references, :belongs_to -%> <%% link_name = <%= singular_table_name %>.<%= attribute.name %>.try(:name) || <%= singular_table_name %>.<%= attribute.name %>.try(:id) %> <%- else -%> <%- end -%> <%- end -%> <%- if authorization? -%> <%% if can? :update, <%= singular_table_name %> -%> <%- end -%> <%- if authorization? -%> <%% end -%> <%- end -%> <%- if authorization? -%> <%% if can? :destroy, <%= singular_table_name %> -%> <%- end -%> <%- if authorization? -%> <%% end -%> <%- end -%> <%% end %>
<%%= t('attributes.<%= singular_table_name %>.<%= attribute.name %>') %>
<%%= <%= singular_table_name %>.<%= attribute.name %> ? style_image_tag("ico_v.png", :class => "ico_true") : style_image_tag("ico_x.png", :class => "ico_false") %><%%= link_to(link_name, <%= singular_table_name %>.<%= attribute.name %> ) %><%%= <%= singular_table_name %>.<%= attribute.name %> %><%%= link_to t(:show), <%= singular_table_name %> %><%%= link_to t(:edit), edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %><%%= link_to t(:destroy), <%= singular_table_name %>, <%= key_value :confirm, "t(:sure?)" %>, <%= key_value :method, ":delete" %>, :remote => remote %>
<%- if pagination? -%> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end -%>