Sha256: 3bfd85d40611860f854d3446a4af18feb08673804329ec480d8d5f5a685bcf3e
Contents?: true
Size: 742 Bytes
Versions: 50
Compression:
Stored size: 742 Bytes
Contents
<h2 class="sr-only"><%= t('hyrax.homepage.featured_works.title') %></h2> <% if @featured_work_list.empty? %> <p><%= t('hyrax.homepage.featured_works.no_works') %></p> <% elsif can? :update, FeaturedWork %> <%= form_for [hyrax, @featured_work_list] do |f| %> <div class="panel-group dd" id="dd"> <ol id="featured_works"> <%= f.fields_for :featured_works do |featured| %> <%= render 'sortable_featured', f: featured %> <% end %> </ol> </div> <%= f.submit("Save order", class: 'btn btn-default') %> <% end %> <% else %> <ol class="list-group list-group-striped" id="featured_works"> <%= render partial: 'featured', collection: @featured_work_list.featured_works %> </ol> <% end %>
Version data entries
50 entries across 50 versions & 1 rubygems