app/views/archangel/backend/collections/index.html.erb in archangel-0.0.7 vs app/views/archangel/backend/collections/index.html.erb in archangel-0.0.8

- old
+ new

@@ -26,21 +26,10 @@ <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th> </tr> </thead> <tbody> - <% @collections.each do |collection| %> - <tr> - <td><%= collection.name %></td> - <td><%= collection.slug %></td> - <td class="actions text-right"> - <%= link_to(fa_icon("info-circle", text: Archangel.t(:show)), backend_collection_path(collection), class: "btn btn-info btn-sm") %> - <%= link_to(fa_icon("check-circle", text: Archangel.t(:edit)), edit_backend_collection_path(collection), class: "btn btn-warning btn-sm") %> - <%= link_to(fa_icon("times-circle", text: Archangel.t(:destroy)), backend_collection_path(collection), class: "btn btn-danger btn-sm", - method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %> - </td> - </tr> - <% end %> + <%= render partial: "collection", collection: @collections %> </tbody> </table> </div> <%= paginate @collections %>