app/views/archangel/backend/widgets/index.html.erb in archangel-0.0.7 vs app/views/archangel/backend/widgets/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> - <% @widgets.each do |widget| %> - <tr> - <td><%= widget.name %></td> - <td><%= widget.slug %></td> - <td class="actions text-right"> - <%= link_to(fa_icon("info-circle", text: Archangel.t(:show)), backend_widget_path(widget), class: "btn btn-info btn-sm") %> - <%= link_to(fa_icon("check-circle", text: Archangel.t(:edit)), edit_backend_widget_path(widget), class: "btn btn-warning btn-sm") %> - <%= link_to(fa_icon("times-circle", text: Archangel.t(:destroy)), backend_widget_path(widget), class: "btn btn-danger btn-sm", - method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %> - </td> - </tr> - <% end %> + <%= render partial: "widget", collection: @widgets %> </tbody> </table> </div> <%= paginate @widgets %>