lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb in admin_help-0.1.4 vs lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb in admin_help-0.1.5

- old
+ new

@@ -1,33 +1,26 @@ -<div class="panel"> - <h1 class="title--actions"> - <%%= <%= singular_table_name.classify %>.model_name.human %> - <%%= link_to t('actions.new') + <%= singular_table_name.classify %>.model_name.human, new_<%= prefixed_plain_model_url %>_path, class: "button button--primary" %> - </h1> - - <table class="table table--horizontal"> - <thead> - <tr> +<div class="panel-header"><%%= link_to t('actions.new') + <%= singular_table_name.classify %>.model_name.human, new_<%= prefixed_plain_model_url %>_path, class: "ui button primary" %></div> +<table> + <thead> + <tr> <% attributes.reject(&:password_digest?).each do |attribute| -%> - <th><%%= <%= singular_table_name.classify %>.human_attribute_name(:<%= attribute.name %>) %></th> + <th><%%= <%= singular_table_name.classify %>.human_attribute_name(:<%= attribute.name %>) %></th> <% end -%> - <th></th> - </tr> - </thead> + <th></th> + </tr> + </thead> - <tbody> - <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> - <tr> - <% attributes.reject(&:password_digest?).each do |attribute| -%> - <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> - <% end -%> - <td> - <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, title: t('actions.show'), class: "button--tiny button--primary" do -%><i class="fa fa-file"></i><%% end %> - <%%= link_to edit_<%= prefixed_plain_model_url %>_path(<%= singular_table_name %>), title: t('actions.edit'), class: "button--tiny button--warning" do -%><i class="fa fa-pencil"></i><%% end %> - <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, title: t('actions.destroy'), class: "button--tiny button--danger" do -%><i class="fa fa-times"></i><%% end %> - </td> - </tr> - <%% end %> - </tbody> - </table> - -</div> + <tbody> + <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> + <tr> +<% attributes.reject(&:password_digest?).each do |attribute| -%> + <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> +<% end -%> + <td> + <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, class: "ui button tiny primary tooltip" do -%><span class="tooltiptext"><%%= t('actions.show') %></span><i class="ai ai-file"></i><%% end %> + <%%= link_to edit_<%= prefixed_plain_model_url %>_path(<%= singular_table_name %>), class: "ui button tiny warning tooltip" do -%><span class="tooltiptext"><%%= t('actions.edit') %></span><i class="ai ai-pencil"></i><%% end %> + <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, class: "ui button tiny danger tooltip" do -%><span class="tooltiptext"><%%= t('actions.destroy') %></span><i class="ai ai-times"></i><%% end %> + </td> + </tr> + <%% end %> + </tbody> +</table> \ No newline at end of file