Dynamic navbar in layout
This commit is contained in:
parent
9a674f8acb
commit
2e8228be7e
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,16 @@ html
|
||||||
|
|
||||||
div#user
|
div#user
|
||||||
a(href="/") Home
|
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 |
|
p |
|
||||||
if user
|
if user
|
||||||
a(href="/profile")=user.username
|
a(href="/profile")=user.username
|
||||||
|
|
Reference in a new issue