% if (current_user && current_user.exhibits.any?) || can?(:manage, Spotlight::Exhibit) %>
<% if @exhibits.published.none? %>
<%= render 'missing_exhibits' %>
<% else %>
<%= render 'tags', tags: @exhibits.published.all_tags %>
<%= render 'exhibits', exhibits: @published_exhibits %>
<% if @published_exhibits.total_count > @published_exhibits.size %>
<% end %>
<% end %>
<% if @exhibits.unpublished.accessible_by(current_ability).any? %>
<%= render 'exhibits', exhibits: @exhibits.unpublished.ordered_by_weight.accessible_by(current_ability) %>
<% end %>
<% if current_user && current_user.exhibits.any? %>
<%= render 'exhibits', exhibits: current_user.exhibits %>
<% end %>
<% content_for(:sidebar_position) { 'order-last' } %>
<% content_for(:sidebar) do %>
<%= render "shared/site_sidebar" %>
<% end %>