blob: a523d32474c82f51641a5697a9e2b69013658879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
%table{:class => 'table table-striped'}
%tr
<%- for attribute in model_attributes -%>
%th= t('<%= plural_name %>.index.<%= attribute.name %>')
<%- end -%>
- for <%= instance_name %> in <%= instances_name %>
%tr
<%- for attribute in model_attributes -%>
%td= <%= instance_name %>.<%= attribute.name %>
<%- end -%>
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => <%= instance_name %>}
|