<% if (current_user && current_user.exhibits.any?) || can?(:manage, Spotlight::Exhibit) %> <% end %>
<% if @exhibits.published.none? %> <%= render 'missing_exhibits' %> <% end %> <%= cache cache_key_for_spotlight_exhibits do %> <%= render 'exhibits', exhibits: @exhibits.published %> <% end %>
<% if @exhibits.unpublished.accessible_by(current_ability).any? %>
<%= render 'exhibits', exhibits: @exhibits.unpublished.accessible_by(current_ability) %>
<% end %> <% if current_user && current_user.exhibits.any? %>
<%= render 'exhibits', exhibits: current_user.exhibits %>
<% end %>