app/views/spotlight/exhibits/index.html.erb in blacklight-spotlight-0.13.0 vs app/views/spotlight/exhibits/index.html.erb in blacklight-spotlight-0.14.0

- old
+ new

@@ -3,11 +3,13 @@ <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#published" aria-controls="published" role="tab" data-toggle="tab"><%= t('.published') %></a></li> <% if can?(:manage, Spotlight::Exhibit) %> <li role="presentation"><a href="#unpublished" aria-controls="unpublished" role="tab" data-toggle="tab"><%= t('.unpublished') %></a></li> <% end %> - <li role="presentation"><a href="#user" aria-controls="user" role="tab" data-toggle="tab"><%= t('.user') %></a></li> + <% if current_user && current_user.exhibits.any? %> + <li role="presentation"><a href="#user" aria-controls="user" role="tab" data-toggle="tab"><%= t('.user') %></a></li> + <% end %> </ul> <% end %> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="published"> @@ -45,7 +47,7 @@ <% end %> </div> </div> <aside class="col-md-3"> - <%= render "shared/home_sidebar" %> + <%= render "shared/site_sidebar" %> </aside>