Compare commits

..

3 Commits

2 changed files with 4 additions and 1 deletions

View File

@ -119,18 +119,21 @@ menu = {
],
"sidebar": [
{
"icon":"fa-solid fa-gauge",
"name":"Dashboard",
"target":"_self",
"href":"/dashboard",
"roles":[1,2]
},
{
"icon":"fa-solid fa-user-tag",
"name":"Roles",
"target":"_self",
"href":"/dashboard/roles",
"roles":[1]
},
{
"icon":"fa-solid fa-address-card",
"name":"Users",
"target":"_self",
"href":"/dashboard/users",

View File

@ -6,7 +6,7 @@
% 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']}">
${item['name']}
<i class="${item['icon']}"></i> ${item['name']}
</a>
</li>
% endif