2024-09-26 12:25:27 +07:00
|
|
|
<!-- Sidebar -->
|
|
|
|
<div class="sidebar p-3" id="sidebar">
|
|
|
|
<!-- <h5>Sidebar</h5> -->
|
|
|
|
<ul class="nav flex-column pb-5">
|
|
|
|
% 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']}">
|
2024-09-26 21:48:35 +07:00
|
|
|
<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>
|