update depedencies, changes to support updated authentication-module
[squeep-indie-auther] / src / template / admin-html.js
index a6a83a0629f3219fc4b7f2ea59965966494f3e33..4fee8e74298e9de7fc22713f700060f1f87d2a9d 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 const th = require('./template-helper');
+const { sessionNavLinks } = require('@squeep/authentication-module');
 
 
 function renderProfileLI(profile) {
@@ -196,17 +197,15 @@ ${tokenTable(ctx.tokens)}
  * @returns {String}
  */
 module.exports = (ctx, options) => {
+  const pagePathLevel = 1;
   const htmlOptions = {
-    pageTitle: options.manager.pageTitle,
+    pageIdentifier: 'admin',
+    pageTitle: options.manager.pageTitle + ' - Admin',
     logoUrl: options.manager.logoUrl,
     footerEntries: options.manager.footerEntries,
-    navLinks: [
-      {
-        text: 'Ticket',
-        href: 'ticket',
-      },
-    ],
   };
+  th.navLinks(pagePathLevel, ctx, htmlOptions);
+  sessionNavLinks(1, ctx, htmlOptions);
   const content = [
     mainContent(ctx),
   ];