Sha256: cf5a0b5f5bd847284766683318737710fbfc4b2797062d88e14e45a5ace21714

Contents?: true

Size: 1015 Bytes

Versions: 7

Compression:

Stored size: 1015 Bytes

Contents

<%= render 'spotlight/shared/exhibit_sidebar' %>
<div id="content" class="col-md-9">
  <%= 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="<%= "active" if @tab == tab_name %>">
          <%= link_to t("#{p.gsub('/', '.')}.title"),
                      "##{tab_name}",
                      role: 'tab',
                      '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>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-2.13.0 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.12.1 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.12.0 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.11.0 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.10.0 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.9.0 app/views/spotlight/resources/new.html.erb
blacklight-spotlight-2.8.0 app/views/spotlight/resources/new.html.erb