Sha256: 5d274d6798d25f87f2086cd388779b90a427b2440297c388f7e0035af2ae64cc

Contents?: true

Size: 1.34 KB

Versions: 15

Compression:

Stored size: 1.34 KB

Contents

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

<div class="card">
  <div class="card-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

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.4 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.3 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.2 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.1 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.0 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/admin/admin_sets/index.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/admin/admin_sets/index.html.erb