Sha256: 7c6899c12ed6612c36853f3d361497541bb2ddc8e0aa496cb21f5c69e467e050

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

<div class="card card-default">
  <div class="card-body">
    <h2><%= fa_icon("flag") %> <%= Archangel.t(:index_resource, resource: @templates.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-body">
          <% if @templates.present? %>

            <%= paginate @templates %>

            <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(:partial) %></th>
                    <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
                  </tr>
                </thead>

                <tbody>
                  <%= render partial: "template", collection: @templates %>
                </tbody>
              </table>
            </div>

            <%= paginate @templates %>

          <% else %>

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/backend/templates/index.html.erb
archangel-0.0.8 app/views/archangel/backend/templates/index.html.erb