Sha256: ebe7cd91c69a0da39a88873b0b39f4082785979a23c6b27447b6576bfc4e4eae
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
<div class="application-menu sticky-top navbar navbar-dark bg-dark navbar-expand-lg"> <%= render partial: 'active_element/theme/select' %> <div class="container p-0"> <a class="navbar-brand" href="#"><%= ActiveElement.application_title %></a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav me-auto mb-2 mb-lg-0"> <% ActiveElement.navbar_items(current_user).each do |navbar_item| %> <li class="nav-item"> <%= link_to navbar_item.fetch(:title) { navbar_item.fetch(:label) }, navbar_item.fetch(:path), class: "nav-link #{ ActiveElement.active_path_class( user: current_user, current_navbar_item: navbar_item, current_path: request.path, controller_path: controller_path, action_name: action_name) }" %> </li> <% end %> </li> </ul> </div> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_element-0.0.3 | app/views/active_element/navbar/_menu.html.erb |
active_element-0.0.2 | app/views/active_element/navbar/_menu.html.erb |