Sha256: caea031ade9cdea514239fba39183694d5d72485aee70817a4d7ce9ae0f74956

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

<div class="card card-default sticky-title rounded-0">
  <div class="card-body">
    <h2><%= Archangel.t(:index_resource, resource: @pages.model_name.human.titleize) %></h2>
  </div>
</div>

<div class="card pages-index">
  <div class="card-header">
    <%= render "buttons" %>
  </div>

  <div class="card-body">
    <% if @pages.present? %>

      <div class="table-responsive text-nowrap">
        <table class="table table-hover table-bordered table-striped">
          <thead>
            <tr>
              <th scope="col"><%= Archangel.t(:title) %></th>
              <th scope="col"><%= Archangel.t(:permalink) %></th>
              <th scope="col" class="d-none d-lg-table-cell"><%= Archangel.t(:published) %></th>
              <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
            </tr>
          </thead>

          <tbody>
            <%= render partial: "page", collection: @pages %>
          </tbody>
        </table>
      </div>

      <%= paginate @pages %>

    <% else %>

      <p class="no-resources">
        <%= Archangel.t(:no_resources, resources: @pages.model_name.human.pluralize.downcase) %>
      </p>

    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/views/archangel/backend/pages/index.html.erb