Compare commits
No commits in common. "e9e844863d78a88c6be020922f1fa307a3aa0518" and "9eb6707a4c30af8f3b69d04c7c474813238d2c09" have entirely different histories.
e9e844863d
...
9eb6707a4c
@ -119,21 +119,18 @@ 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",
|
||||
|
@ -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']}">
|
||||
<i class="${item['icon']}"></i> ${item['name']}
|
||||
${item['name']}
|
||||
</a>
|
||||
</li>
|
||||
% endif
|
||||
|
Loading…
Reference in New Issue
Block a user