Sha256: 1a34ec810580786cd6d8cce46d54300f62de2a7b5b6aabf7d738a52f2443b467
Contents?: true
Size: 1.57 KB
Versions: 5
Compression:
Stored size: 1.57 KB
Contents
<%- if pagination? %> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end %> <div class="separator"></div> <table class='user' cellspacing='0'> <thead> <tr> <%- attributes.each do |attribute| -%> <th><%%= t('attributes.<%= singular_table_name %>.<%= attribute.name %>') %></th> <%- end -%> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| -%> <tr id="tr<%%= <%= singular_table_name %>.id %>" class="<%%= cycle("odd", "even")%>"> <%- attributes.each do |attribute| -%> <td><%= attribute_to_erb(attribute, singular_table_name) -%></td> <%- end -%> <!-- Manage section, do not remove this tag --> <td><%%= link_to t(:show), <%= show_resource_path %><%= ", :remote => remote" if jquery_ui? %> %></td> <%- if authorization? -%> <%%- if can? :update, <%= singular_table_name %> -%> <%- end -%> <td><%%= link_to t(:edit), <%= edit_resource_path %> %></td> <%- if authorization? -%> <%%- end -%> <%- end -%> <%- if authorization? -%> <%%- if can? :destroy, <%= singular_table_name %> -%> <%- end -%> <td><%%= link_to t(:destroy), <%= destroy_resource_path %>, <%= key_value :confirm, "t(:sure?)" %>, <%= key_value :method, ":delete" %>, :remote => remote %></td> <%- if authorization? -%> <%%- end -%> <%- end -%> </tr> <%% end -%> </tbody> </table> <div class="separator"></div> <%- if pagination? -%> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end -%>
Version data entries
5 entries across 5 versions & 1 rubygems