2024-08-09 15:44:57 +07:00
|
|
|
<nav class="navbar">
|
2024-11-15 15:02:52 +07:00
|
|
|
<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>
|