diff --git a/routes/routes.js b/routes/routes.js index 481e2fb983bf0ae9d17daaf78cc824423a78d6e1..1632240d13db692b19aa567ccb94341256ef01ac 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -559,13 +559,11 @@ module.exports = function (app, config, passport, i18n) { // ======== APP ROUTES - PROJECT LIST ==================== app.get('/project', function (req, res) { if (req.isAuthenticated()) { - console.log("true") res.render(lang+'/projectList/projects', { isUserAuthenticated: true }); } else { - console.log("false") res.render(lang+'/projectList/projects', { isUserAuthenticated: false }); diff --git a/views/DE/projectList/projects.pug b/views/DE/projectList/projects.pug index 49b656ea5cb5bac2cadf8eae9a8c1ee953366b48..5b1a10a532443025238b5985b88278cb9c62d775 100644 --- a/views/DE/projectList/projects.pug +++ b/views/DE/projectList/projects.pug @@ -38,11 +38,14 @@ html(lang="de") h3(class="mb-3 font-weight-bold") Hello World div(class="col-md-6 offset-md-3") p Content: Project List in a table - // jQuery script(src="https://code.jquery.com/jquery-3.3.1.min.js") script(src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js", integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1", crossorigin="anonymous") // Bootstrap script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous") - script(src="https://transfer.hft-stuttgart.de/js/headfoot.js") \ No newline at end of file + // Header + if isUserAuthenticated + script(src="/js/headfootLogout.js") + else + script(src="https://transfer.hft-stuttgart.de/js/headfoot.js") \ No newline at end of file