authsquare/app/templates/prime/html/sidebar.html

17 lines
637 B
HTML
Raw Permalink Normal View History

2024-09-26 12:25:27 +07:00
<!-- Sidebar -->
2024-09-28 14:07:32 +07:00
<div class="sidebar" id="sidebar">
2024-09-26 12:25:27 +07:00
<!-- <h5>Sidebar</h5> -->
2024-09-28 14:25:10 +07:00
<ul class="navbar-nav flex-column">
2024-09-26 12:25:27 +07:00
% for item in menu:
% if any(role in item['roles'] for role in user_roles):
<li class="nav-item">
<a class="nav-link text-white ${'active' if item['name'] == active_page else ''}" href="${item['href']}" target="${item['target']}">
<i class="${item['icon']} me-3"></i> ${item['name']}
2024-09-26 12:25:27 +07:00
</a>
</li>
% endif
% endfor
<!-- Add more items to test scrolling -->
</ul>
</div>