Compare commits
No commits in common. "7ac06aa5ece97cc11f44681b9bcc250c4f3b98df" and "f811ea2b952df30a68e5d2dca401f17a9357e6c5" have entirely different histories.
7ac06aa5ec
...
f811ea2b95
@ -119,21 +119,18 @@ menu = {
|
|||||||
],
|
],
|
||||||
"sidebar": [
|
"sidebar": [
|
||||||
{
|
{
|
||||||
"icon":"fa-solid fa-gauge",
|
|
||||||
"name":"Dashboard",
|
"name":"Dashboard",
|
||||||
"target":"_self",
|
"target":"_self",
|
||||||
"href":"/dashboard",
|
"href":"/dashboard",
|
||||||
"roles":[1,2]
|
"roles":[1,2]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon":"fa-solid fa-user-tag",
|
|
||||||
"name":"Roles",
|
"name":"Roles",
|
||||||
"target":"_self",
|
"target":"_self",
|
||||||
"href":"/dashboard/roles",
|
"href":"/dashboard/roles",
|
||||||
"roles":[1]
|
"roles":[1]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon":"fa-solid fa-address-card",
|
|
||||||
"name":"Users",
|
"name":"Users",
|
||||||
"target":"_self",
|
"target":"_self",
|
||||||
"href":"/dashboard/users",
|
"href":"/dashboard/users",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
% if any(role in item['roles'] for role in user_roles):
|
% if any(role in item['roles'] for role in user_roles):
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-white ${'active' if item['name'] == active_page else ''}" href="${item['href']}" target="${item['target']}">
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
% endif
|
% endif
|
||||||
|
Loading…
Reference in New Issue
Block a user