Sha256: 23f5b8167a37b747eaf5d256396d044411aea7f599e0e214f1628b9b50de5893
Contents?: true
Size: 1.35 KB
Versions: 42
Compression:
Stored size: 1.35 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="pull-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="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
42 entries across 42 versions & 1 rubygems