Sha256: f4a5951be5c9471bd5c8c9651234a787cee9a03a17d8fbe4d8bec38ca11de785

Contents?: true

Size: 744 Bytes

Versions: 15

Compression:

Stored size: 744 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-secondary') %>
  <% 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

15 entries across 15 versions & 1 rubygems

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