% content_for(:sidebar) do %>
<%= render 'spotlight/shared/exhibit_sidebar' %>
<% end %>
<%= curation_page_title %>
<% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
<% tab_name = p.split('/')[2] %>
- ">
<%= link_to t("#{p.gsub('/', '.')}.title"),
"##{tab_name}",
role: 'tab',
class: 'nav-link',
'data-toggle' => 'tab',
'aria-controls' => "#{tab_name}" %>
<% end %>
<% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
<% tab_name = p.split('/')[2] %>
<%= content_tag :div, id: "#{tab_name}", role: 'tabpanel', class: "tab-pane #{"active" if @tab == tab_name}" do %>
<%= render p %>
<% end %>
<% end %>