app/views/spotlight/resources/new.html.erb in blacklight-spotlight-3.0.0.alpha.2 vs app/views/spotlight/resources/new.html.erb in blacklight-spotlight-3.0.0.alpha.3
- old
+ new
@@ -5,14 +5,14 @@
<%= 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 %>">
+ <li role="presentation" class="nav-item">
<%= link_to t("#{p.gsub('/', '.')}.title"),
"##{tab_name}",
role: 'tab',
- class: 'nav-link',
+ class: "nav-link #{"active" if @tab == tab_name}",
'data-toggle' => 'tab',
'aria-controls' => "#{tab_name}" %>
</li>
<% end %>
</ul>