<% if (current_user && current_user.exhibits.any?) || can?(:manage, Spotlight::Exhibit) %>
<% if @exhibits.published.none? %>
<%= render 'missing_exhibits' %>
<% end %>
<%= cache cache_key_for_spotlight_exhibits do %>
<% @exhibits.published.each_slice(3).each do |row| %>
<%= render collection: row, partial: 'exhibit_card', as: 'exhibit' %>
<% end %>
<% end %>
<% if @exhibits.unpublished.accessible_by(current_ability).any? %>
<% @exhibits.unpublished.accessible_by(current_ability).each_slice(3).each do |row| %>
<%= render collection: row, partial: 'exhibit_card', as: 'exhibit' %>
<% end %>
<% end %>
<% if current_user && current_user.exhibits.any? %>
<% current_user.exhibits.each_slice(3).each do |row| %>
<%= render collection: row, partial: 'exhibit_card', as: 'exhibit' %>
<% end %>
<% end %>