This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
labelprint/views/_navbar.erb
T
randy d5db7ded9e
deploy / deploy (push) Successful in 5s
Own bar above the new brother_ql_web label designer, which has no Bootstrap
The Bootstrap navbar was injected without Bootstrap and took the first row of
the designer's page grid, its top bar was stretched to the height of the page.
2026-11-04 12:32:37 +01:00

28 lines
1.4 KiB
ERB

<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
<div class="container-fluid d-flex align-items-center">
<a class="navbar-brand" href="/"><i class="mdi mdi-printer"></i> Print server</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link <%= 'active' if request.path == '/' %>" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/brother') %>" href="/brother">Brother</a>
</li>
<li class="nav-item">
<a class="nav-link <%= 'active' if request.path == '/upload' %>" href="/upload">Shipping labels</a>
</li>
<li class="nav-item">
<a class="nav-link <%= 'active' if request.path == '/epson' %>" href="/epson">Receipts</a>
</li>
<li class="nav-item">
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/repository') %>" href="/repository">Labels</a>
</li>
</ul>
</div>
</div>
</nav>