Sha256: dfd5fd98f653247a86f6a429e3795360b121ca1de8c17795b008a63174dbd3cc

Contents?: true

Size: 1014 Bytes

Versions: 43

Compression:

Stored size: 1014 Bytes

Contents

<% content_for(:sidebar) do %>
  <%= render 'spotlight/shared/exhibit_sidebar' %>
<% end %>

<%= curation_page_title %>
<div role="tabpanel">
  <ul class="nav nav-tabs" role="tablist">
    <% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
      <% tab_name = p.split('/')[2] %>
      <li role="presentation" class="nav-item">
        <%= link_to t("#{p.gsub('/', '.')}.title"),
                    "##{tab_name}",
                    role: 'tab',
                    class: "nav-link #{"active" if @tab == tab_name}",
                    'data-toggle' => 'tab',
                    'aria-controls' => "#{tab_name}" %>
      </li>
    <% end %>
  </ul>
  <div class="tab-content">
    <% 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 %>
  </div>
</div>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.5 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-3.0.0.alpha.4 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-3.0.0.alpha.3 app/views/spotlight/resources/new.html.erb