Sha256: 30749fd6daa446d874267b50be0b7861cedb26450fbfba6ab268dba07f251936

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

<aside class="app-sidebar<%= " #{cookies["trestle:sidebar"]}" if cookies["trestle:sidebar"] %>">
  <header class="app-sidebar-header">
    <button class="navbar-toggle">
      <span class="sr-only"><%= t("admin.ui.toggle_navigation", default: "Toggle navigation") %></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>

    <%= link_to trestle_title, Trestle.config.path, class: "navbar-brand" %>
  </header>

  <div class="app-sidebar-inner">
    <nav class="app-nav">
      <% Trestle.navigation.each do |group, items| %>
        <ul>
          <% if group.present? %>
            <li class="nav-header"><%= group.label %></li>
          <% end %>

          <% items.each do |item| %>
            <li<% if current_navigation_item?(item) %> class="active"<% end %>>
              <%= link_to item.path do %>
                <%= icon("nav-icon", item.icon) %>
                <span class="nav-label"><%= item.label %></span>

                <%= content_tag(:span, item.badge.text, class: ["nav-badge", item.badge.html_class]) if item.badge? %>
              <% end %>
            </li>
          <% end %>
        </ul>
      <% end %>
    </nav>

    <button class="toggle-sidebar">
      <span class="sr-only"><%= t("admin.ui.toggle_sidebar", default: "Toggle sidebar") %></span>
    </button>
  </div>
</aside>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trestle-0.8.4 app/views/trestle/shared/_sidebar.html.erb