Sha256: 5de6b2aa672f63ee9deab9f26b85f69ed480826cf47e1e86521238ba188fb36b

Contents?: true

Size: 648 Bytes

Versions: 3

Compression:

Stored size: 648 Bytes

Contents

<% if tabs.any? || render_sidebar_as_tab? -%>
  <%= content_tag :ul, class: "nav nav-tabs", data: local_assigns.fetch(:data, {}) do %>
    <% tabs.each do |name, tab| %>
      <li class="nav-item">
        <%= link_to tab.label, "##{tab.id(("modal" if modal_request?))}", class: ["nav-link", ("active" if name == tabs.keys.first)], role: "tab", data: { bs_toggle: "tab" } %>
      </li>
    <% end %>

    <% if render_sidebar_as_tab? %>
      <li class="nav-item align-right">
        <%= link_to icon("fa fa-list-alt"), "#tab-sidebar", class: "nav-link", role: "tab", data: { bs_toggle: "tab" } %>
      </li>
    <% end %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.10.0 app/views/trestle/application/_tabs.html.erb
trestle-0.10.0.pre2 app/views/trestle/application/_tabs.html.erb
trestle-0.10.0.pre app/views/trestle/application/_tabs.html.erb