app/views/archangel/backend/collections/show.html.erb in archangel-0.3.0 vs app/views/archangel/backend/collections/show.html.erb in archangel-0.4.0
- old
+ new
@@ -1,44 +1,38 @@
-<div class="card card-default">
+<div class="card card-default sticky-title rounded-0">
<div class="card-body">
- <h2><%= fa_icon("folder-open") %> <%= Archangel.t(:show_resource, resource: @collection.model_name.human.titleize) %></h2>
+ <h2><%= Archangel.t(:show_resource, resource: @collection.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 collections-show">
+ <div class="card-header">
+ <%= render "buttons" %>
+ </div>
- <div class="card-body">
- <p>
- <strong><%= Archangel.t(:name) %>:</strong>
- <%= @collection.name %>
- </p>
+ <div class="card-body">
+ <p>
+ <strong><%= Archangel.t(:name) %>:</strong>
+ <%= @collection.name %>
+ </p>
- <p>
- <strong><%= Archangel.t(:slug) %>:</strong>
- <%= @collection.slug %>
- </p>
+ <p>
+ <strong><%= Archangel.t(:slug) %>:</strong>
+ <%= @collection.slug %>
+ </p>
- <p>
- <pre>
- <code>
+ <p>
+ <pre>
+ <code>
{% collectionfor item in "<%= @collection.slug %>" %}
{{ forloop.index }}: {{ item.id }}
{% endcollectionfor %}
{% collection items = "<%= @collection.slug %>" %}
{% for item in items %}
{{ forloop.index }}: {{ item.id }}
{% endfor %}
- </code>
- </pre>
- </p>
- </div>
- </div>
- </div>
+ </code>
+ </pre>
+ </p>
</div>
</div>