Sha256: 4ea047a203e6e0023dc23be142c8c4ac64c277e37633aa57475d966544dae931

Contents?: true

Size: 725 Bytes

Versions: 11

Compression:

Stored size: 725 Bytes

Contents

<h2><%= t('sufia.homepage.featured_works.title') %></h2>
<% if @featured_work_list.empty? %>
  <p><%= t('sufia.homepage.featured_works.no_works') %></p>
<% elsif can? :update, FeaturedWork %>
  <%= form_for [sufia, @featured_work_list] do |f| %>
    <div class="panel-group dd" id="dd">
      <ol id="featured_works">
        <%= f.fields_for :featured_works do |featured| %>
          <%= render partial: 'homepage/sortable_featured', locals: {f: featured} %>
        <% end %>
      </ol>
    </div>
    <%= f.submit("Save order", class: 'btn btn-default') %>
  <% end %>
<% else %>
  <ol id="featured_works">
    <%= render partial: 'homepage/featured', collection: @featured_work_list.featured_works %>
  </ol>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sufia-6.7.0 app/views/homepage/_featured_works.html.erb
sufia-6.6.1 app/views/homepage/_featured_works.html.erb
sufia-6.6.0 app/views/homepage/_featured_works.html.erb
sufia-6.5.0 app/views/homepage/_featured_works.html.erb
sufia-6.4.0 app/views/homepage/_featured_works.html.erb
sufia-6.3.0 app/views/homepage/_featured_works.html.erb
sufia-6.2.0 app/views/homepage/_featured_works.html.erb
sufia-6.1.0 app/views/homepage/_featured_works.html.erb
sufia-6.0.0 app/views/homepage/_featured_works.html.erb
sufia-6.0.0.rc4 app/views/homepage/_featured_works.html.erb
sufia-6.0.0.rc3 app/views/homepage/_featured_works.html.erb