app/views/archangel/backend/widgets/index.html.erb in archangel-0.3.0 vs app/views/archangel/backend/widgets/index.html.erb in archangel-0.4.0
- old
+ new
@@ -1,49 +1,41 @@
-<div class="card card-default">
+<div class="card card-default sticky-title rounded-0">
<div class="card-body">
- <h2><%= fa_icon("star") %> <%= Archangel.t(:index_resource, resource: @widgets.model_name.human.titleize) %></h2>
+ <h2><%= Archangel.t(:index_resource, resource: @widgets.model_name.human.titleize) %></h2>
</div>
</div>
-<div class="container-fluid">
- <div class="row">
- <div class="col-lg-12">
- <div class="card pages-index">
- <div class="card-header">
- <%= render "buttons" %>
- </div>
+<div class="card widgets-index">
+ <div class="card-header">
+ <%= render "buttons" %>
+ </div>
- <div class="card-body">
- <% if @widgets.present? %>
+ <div class="card-body">
+ <% if @widgets.present? %>
- <%= paginate @widgets %>
+ <div class="table-responsive text-nowrap">
+ <table class="table table-hover table-bordered table-striped">
+ <thead>
+ <tr>
+ <th scope="col"><%= Archangel.t(:name) %></th>
+ <th scope="col"><%= Archangel.t(:slug) %></th>
+ <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
+ </tr>
+ </thead>
- <div class="table-responsive">
- <table class="table table-hover table-bordered table-striped">
- <thead>
- <tr>
- <th scope="col"><%= Archangel.t(:name) %></th>
- <th scope="col"><%= Archangel.t(:slug) %></th>
- <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
- </tr>
- </thead>
+ <tbody>
+ <%= render partial: "widget", collection: @widgets %>
+ </tbody>
+ </table>
+ </div>
- <tbody>
- <%= render partial: "widget", collection: @widgets %>
- </tbody>
- </table>
- </div>
+ <%= paginate @widgets %>
- <%= paginate @widgets %>
+ <% else %>
- <% else %>
+ <p class="no-resources">
+ <%= Archangel.t(:no_resources, resources: @widgets.model_name.human.pluralize.downcase) %>
+ </p>
- <p class="no-resources">
- <%= Archangel.t(:no_resources, resources: @widgets.model_name.human.pluralize.downcase) %>
- </p>
-
- <% end %>
- </div>
- </div>
- </div>
+ <% end %>
</div>
</div>