diff --git a/views/includes/navbar.pug b/views/includes/navbar.pug index 495ef521..8605c9ea 100644 --- a/views/includes/navbar.pug +++ b/views/includes/navbar.pug @@ -3,5 +3,6 @@ nav.navbar#top a.nav-item(href='/news.html') News a.nav-item(href='/boards.html') Boards a.nav-item(href='/account.html') Account - a.nav-item(href=`/${board ? board._id+'/manage/reports' : 'globalmanage/recent'}.html`) Manage + if board + a.nav-item(href=`/${board._id}/manage/reports.html`) Manage a.jsonly.nav-item.right#settings ⚙ diff --git a/views/pages/account.pug b/views/pages/account.pug index 0768844a..9639fe31 100644 --- a/views/pages/account.pug +++ b/views/pages/account.pug @@ -2,7 +2,7 @@ extends ../layout.pug block head script(src='/js/all.js') - title Manage + title Account block content .board-header diff --git a/views/pages/globalmanageaccounts.pug b/views/pages/globalmanageaccounts.pug index 52a45523..c29fe2e9 100644 --- a/views/pages/globalmanageaccounts.pug +++ b/views/pages/globalmanageaccounts.pug @@ -28,13 +28,19 @@ block content td #{account._id} td #{account.authLevel} td - for b in account.ownedBoards - a(href=`/${b}/index.html`) /#{b}/ - | + if account.ownedBoards.length > 0 + for b in account.ownedBoards + a(href=`/${b}/index.html`) /#{b}/ + | + else + | - td - for b in account.modBoards - a(href=`/${b}/index.html`) /#{b}/ - | + if account.modBoards.length > 0 + for b in account.modBoards + a(href=`/${b}/index.html`) /#{b}/ + | + else + | - .pages.mt-5 include ../includes/pages.pug .row