app/views/administrate/application/_collection.html.erb in administrate-0.6.0 vs app/views/administrate/application/_collection.html.erb in administrate-0.7.0

- old
+ new

@@ -16,11 +16,11 @@ or by a hard limit to prevent excessive page load times [1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Collection %> -<table class="collection-data" aria-labelledby="page-title"> +<table aria-labelledby="page-title"> <thead> <tr> <% collection_presenter.attribute_types.each do |attr_name, attr_type| %> <th class="cell-label cell-label--<%= attr_type.html_class %> @@ -53,18 +53,18 @@ </tr> </thead> <tbody> <% resources.each do |resource| %> - <tr class="table__row" + <tr class="js-table-row" tabindex="0" <%= %(role=link data-url=#{polymorphic_path([namespace, resource])}) if valid_action? :show -%> > <% collection_presenter.attributes_for(resource).each do |attribute| %> <td class="cell-data cell-data--<%= attribute.html_class %>"> <a href="<%= polymorphic_path([namespace, resource]) -%>" - class="action-show table__link-plain" + class="action-show" > <%= render_field attribute %> </a> </td> <% end %> @@ -79,10 +79,10 @@ <% if valid_action? :destroy %> <td><%= link_to( t("administrate.actions.destroy"), [namespace, resource], - class: "table__action--destroy", + class: "text-color-red", method: :delete, data: { confirm: t("administrate.actions.confirm") } ) %></td> <% end %> </tr>