Archived
1
0
Fork 0

Dynamic navbar in layout

This commit is contained in:
Ethanell 2020-08-17 19:08:35 +02:00
parent 9a674f8acb
commit 2e8228be7e

View file

@ -8,6 +8,16 @@ html
div#user
a(href="/") Home
if user
if user.permissions >= 1
p -
a(href="/sandwiches") Sandwiches
if user.permissions >= 2
p -
a(href="/orders") Commands
if user.permissions >= 3
p -
a(href="/admin") Administration
p |
if user
a(href="/profile")=user.username