authsquare/app/templates/plain/html/navbar.html
2024-06-17 12:37:45 +07:00

10 lines
268 B
HTML

<nav class="navbar">
% 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
</nav>