costa-vite-myna/templates/plain/html/navbar.html

10 lines
268 B
HTML
Raw Permalink Normal View History

2024-08-09 15:44:57 +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>