authsquare/app/templates/plain/html/navbar.html

10 lines
268 B
HTML
Raw Permalink Normal View History

2024-06-17 12:37:45 +07:00
<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>