costapy/templates/plain/html/navbar.html
2024-08-09 15:44:57 +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>