1
0
Fork 0

web - use app name from config

master
Ruben Meyer 2 years ago
parent 7e77b8d0f9
commit e288966cfe
Signed by: rxbn_
GPG Key ID: BE3BF898BE352FE2

@ -27,6 +27,7 @@ module.exports = {
},
app: {
locale: 'de-DE', // default locale (de-DE & en-EN should be available)
name: 'authRXBN',
passhashDelimiter: '|'
},
mongoose: {

@ -1,6 +1,6 @@
footer
.uk-text-center
small Copyright &copy; <a href="https://www.rxbn.de/">Ruben Meyer</a> 2019
small Copyright &copy; <a href="https://www.rxbn.de/">Ruben Meyer</a> 2019-2020
.modals
//- Logout Modal
@ -21,5 +21,5 @@ block scripts
script(src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.1.5/js/uikit-icons.min.js")
//- Custom scripts for this template
script(src="/public/js/locales.js")
//script(src="/public/js/locales.js")
script(src="/res/js/custom.js")

@ -6,9 +6,9 @@ head
meta(name="author", content="Ruben Meyer")
meta(name="description" content="auth.rxbn.de")
if(title)
title="authRXBN - "+title
title=cfg.app.name+" - "+title
else
title authRXBN
title=cfg.app.name
block css
//- UIkit CSS

@ -1,5 +1,5 @@
append var
- if(!session || !session.user) var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "ERROR - Please login", "active": true}};
- if(!session || !session.user) var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "ERROR - Please login", "active": true}};
- if(!session || !session.user) var title = "Please login";
.uk-flex.uk-margin-medium-top.uk-margin-medium-bottom
div(class="uk-width-auto uk-width-1-4@s")

@ -8,14 +8,14 @@ mixin navItem(name, id, symbol, href)
nav(uk-navbar).uk-navbar-container
.uk-navbar-left.uk-margin-left
ul.uk-navbar-nav
li(title="authRXBN")
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)
+navItem("Apps", "apps", "fas fa-tachometer-alt", "/")
+navItem("Configs", "configs", "fas fa-wrench", "/configs")
+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")

@ -1,8 +1,8 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Dashboard", "active": true}};
- var title = "Dashboard";
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Apps", "active": true}};
- var title = "Apps";
mixin item(name, id, description)
div

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && !session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Login", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Login", "active": true}};
- var title = "Login";
append content

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Logout", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Logout", "active": true}};
- var title = "Logout";
append content

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(cfg && cfg.web.registration && session && !session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Register", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Register", "active": true}};
- var title = "Register";
append content

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Authorization", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Authorization", "active": true}};
- var title = "authorize App";
append content

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && !session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Forgot your password?", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Forgot your password?", "active": true}};
- var title = "Reset password";
append content

Loading…
Cancel
Save