Sha256: 4e97067bf533c4bfe8142b77a8b4151f78a9abb4a6885559338d3966298fd25b
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
<h1><%%=title t('.title') %></h1> <table> <tr> <%- attributes.each do |attribute| -%> <th><%%=t '<%= plural_name %>.fields.<%= attribute.name %>' %></th> <%- end -%> <%- if is_action_included? :show -%> <th> </th> <%- end -%> <%- if is_action_included? :edit -%> <th> </th> <%- end -%> <%- if is_action_included? :destroy -%> <th> </th> <%- end -%> </tr> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <tr> <%- attributes.each do |attribute| -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <%- end -%> <%- if is_action_included? :show -%> <td><%%= link_to t('<%= plural_name %>.show.short_title'), <%= singular_name %> %></td> <%- end -%> <%- if is_action_included? :edit -%> <td><%%= link_to t('<%= plural_name %>.edit.short_title'), edit_<%= singular_name %>_path(<%= singular_name %>) %></td> <%- end -%> <%- if is_action_included? :destroy -%> <td><%%= link_to t('<%= plural_name %>.destroy.short_title'), <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td> <%- end -%> </tr> <%% end %> </table> <%- if is_action_included? :new -%> <p><%%= link_to t('<%= plural_name %>.new.title'), new_<%= singular_name %>_path %></p> <%- end -%>
Version data entries
3 entries across 3 versions & 1 rubygems