Sha256: 3322a057bdf1a9d59758cf77ba3a761a1daa18f9926776a40720064f640a1448

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 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 <%= "active" if @tab == tab_name %>">
        <%= link_to t("#{p.gsub('/', '.')}.title"),
                    "##{tab_name}",
                    role: 'tab',
                    class: 'nav-link',
                    '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

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-3.0.0.alpha.1 app/views/spotlight/resources/new.html.erb