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