Sha256: 5d7c1aee04c8028a5ca9f541b8f69f4d8361c93e3a52cf2061e2d738eaded3ac
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
<div role="tabpanel" class="item-upload-tabs"> <ul class="nav nav-tabs" role="tablist"> <% Spotlight::Atom::Resources::Engine.config.resource_partials.each_with_index do |p, i| %> <% name = p.split('/').last %> <li role="presentation" class="<%= "active" if i ==0 %>"> <%= link_to t(".#{name}"), "##{name}", role: 'tab', 'data-toggle' => 'tab', 'aria-controls' => 'single' %> </li> <% end %> </ul> <div class="tab-content"> <% Spotlight::Atom::Resources::Engine.config.resource_partials.each_with_index do |p, i| %> <% name = p.split('/').last %> <%= content_tag :div, id: name, role: 'tabpanel', class: "tab-pane #{"active" if i == 0}" do %> <%= render p %> <% end %> <% end %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spotlight-atom-0.0.1 | app/views/spotlight/resources/atom/_tabbed_form.html.erb |