update So 9. Feb 14:01:01 CET 2020

This commit is contained in:
Robert Richter 2020-02-09 14:01:01 +01:00
parent 4cbde357a7
commit b3ccfbd3cd
2 changed files with 27 additions and 6 deletions

View File

@ -82,6 +82,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) {
app.get('/config', auth.ensureAuthenticated, function(req, res) { app.get('/config', auth.ensureAuthenticated, function(req, res) {
sql.db_get_userconfig(req.user.id, function(data) { sql.db_get_userconfig(req.user.id, function(data) {
res.render('config', { res.render('config', {
public: app_cfg.public,
title: 'Einstellungen', title: 'Einstellungen',
user: req.user, user: req.user,
reset_counter: data reset_counter: data
@ -98,6 +99,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) {
// get /help // get /help
app.get('/help', function(req, res) { app.get('/help', function(req, res) {
res.render('help', { res.render('help', {
public: app_cfg.public,
title: 'Hilfe', title: 'Hilfe',
user: req.user user: req.user
}); });
@ -209,6 +211,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) {
// get /login // get /login
app.get('/login', function(req, res) { app.get('/login', function(req, res) {
res.render('login', { res.render('login', {
public: app_cfg.public,
title: 'Login', title: 'Login',
user: req.user user: req.user
}); });

View File

@ -1,6 +1,24 @@
extends layout extends layout
block content block content
main(role='main')
.container
.row
.col
.jumbotron.text-center
h1.display-1.font-weight-bold= title
hr.my-4
.lead
h3.text-muted= public.app_name
p Entwickelt von Robert Richter
p Alle Rechte vorbehalten
br
p
| mehr Informationen unter
a(href="https://github.com/Robert-112/Wachalarm-IP-Web") https://github.com/Robert-112/Wachalarm-IP-Web
.display-4.text-muted.ion-md-github
//extends layout
//block content
main(role='main') main(role='main')
.container.h-100 .container.h-100
.row.justify-content-center.h-100.d-flex .row.justify-content-center.h-100.d-flex