CostaCoffe/templates/plain/html/navbar.html
2024-11-15 15:02:52 +07:00

15 lines
420 B
HTML

<nav class="navbar">
<h2>${title}</h2>
<div class="nav-links">
% for item in menu:
% if any(role in item['roles'] for role in user_roles):
<a class="${'active' if item['name'] == active_page else ''}" href="${item['href']}" target="${item['target']}">
${item['name']}
</a>
% endif
% endfor
</div>
<div class="nav-menu-icons">
<i data-feather="shopping-cart"></i>
</div>
</nav>