1
0
Fork 0
Single sign-on (SSO) Service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.2 KiB

mixin navItem(name, id, symbol, href)
li(title=name, id=id)
a(href=href)
if(symbol !== "")
i.fa-fw(class=symbol)
span= name
// Navigation
nav(uk-navbar).uk-navbar-container
.uk-navbar-left.uk-margin-left
ul.uk-navbar-nav
li(title=cfg.app.name)
a(href="/", style="text-transform: unset")
span authRXBN
.uk-navbar-right.uk-margin-right
ul.uk-navbar-nav
if(session && session.user)
if(group && group.name == cfg.app.adminGroupname)
+navItem("Administration", "admin", "", "/admin")
+navItem("Apps", "apps", "fas fa-tachometer-alt", "/")
+navItem("Settings", "settings", "fas fa-wrench", "/settings")
+navItem("Logout", "logout", "fas fa-sign-out-alt", "/logout")
else
+navItem("Register", "register", "fas fa-user-plus", "/register")
+navItem("Login", "login", "fas fa-sign-in-alt", "/login")
+navItem("Forgot your password?", "reset", "fas fa-key", "/reset")
div
- var breadcrumb_isSet = typeof breadcrumb !== 'undefined';
if(breadcrumb_isSet)
.uk-container.uk-container-expand
ul.uk-breadcrumb
each val in breadcrumb
li(class={"uk-disabled": val.disabled})
if(val.href)
a(href=val.href)= val.name
else
span= val.name
div