Sha256: e7974d77601dd475cc69b016cf8f63948053d1455354f5bd54f76fcb82d12879

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

<% provide :page_header do %>
  <h1><span class="fa fa-sitemap"></span> Administrative Sets</h1>
  <% if can? :create, AdminSet %>
    <div class="pull-right">
      <%= link_to hyrax.new_admin_admin_set_path, class: 'btn btn-primary' do %>
        <span class="fa fa-edit"></span> <%= t(:'helpers.action.admin_set.new') %>
      <% end %>
    </div>
  <% end %>
<% end %>

<div class="panel panel-default">
  <div class="panel-body">
    <% if @admin_sets.present? %>
      <div class="table-responsive">
        <table class="table table-striped datatable">
          <thead>
            <tr>
              <th>Title</th>
              <th>Date created</th>
              <th>Creator</th>
              <th>Works</th>
            </tr>
          </thead>
          <tbody>
            <% @admin_sets.each do |admin_set| %>
              <tr>
                <td><%= link_to admin_set.title.first, [hyrax, :admin, admin_set] %></td>
                <td><%= admin_set.create_date %></td>
                <td><%= safe_join(admin_set.creator) %></td>
                <td><%= controller.presenter_class.new(admin_set, current_ability).total_items %></td>
              </tr>
            <% end %>
          </tbody>
        </table>
      </div>
      <% else %>
        <p>No administrative sets have been created.</p>
      <% end %>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.2.0 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/admin/admin_sets/index.html.erb