Sha256: 7a63d35ae1831b3ee6d679f986b0e8bd4d7f870a1361b82a35c661fca0d92784
Contents?: true
Size: 1.17 KB
Versions: 15
Compression:
Stored size: 1.17 KB
Contents
<%%- set_title '<%= plural_name.titleize -%>' -%> <table class="standard"> <%%- if @<%= plural_name -%>.blank? -%> <tr> <th colspan="<%= model_attributes.size + 1 -%>"><em>No <%= plural_name.titleize.downcase -%> have been created yet.</em></th> </tr> <%%- else -%> <tr> <%- model_attributes.each do |attribute| -%> <th><%%= sort_link('<%= plural_name -%>', '<%= attribute.name -%>', params) -%></th> <%- end -%> <th> </th> </tr> <%%- @<%= plural_name %>.each do |<%= singular_name -%>| -%> <tr class="<%%= cycle('odd', 'even') -%>"> <%- model_attributes.each_with_index do |attribute, i| -%> <%- if i == 0 -%> <td><%%= link_to <%= singular_name -%>.<%= attribute.name -%>, <%= singular_name -%>_path(<%= singular_name -%>) -%></td> <%- else -%> <td><%%= <%= singular_name -%>.<%= attribute.name -%> -%></td> <%- end -%> <%- end -%> <td class="crud_links"><%%= crud_links(<%= singular_name -%>, [:show, :edit, :destroy]) -%></td> </tr> <%%- end -%> <%%- end -%> </table> <div class="link_block attached table"> <%%= link_to "New <%= singular_name.titleize -%>", new_<%= singular_name -%>_path, :class => 'link_button' -%> </div>
Version data entries
15 entries across 15 versions & 1 rubygems