update depedencies, changes to support updated authentication-module
[squeep-indie-auther] / src / template / admin-ticket-html.js
index 492c40d1dfc3d4fba87a0936cff1883359ed8cc1..37bba69b6bc2f9135aa5891fb86c17b1bc5885d8 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 const th = require('./template-helper');
+const { sessionNavLinks } = require('@squeep/authentication-module');
 
 
 function renderProfileOption(profile) {
@@ -79,20 +80,18 @@ ${scopesCheckboxRows}
  * @returns {String}
  */
 module.exports = (ctx, options) => {
+  const pagePathLevel = 1;
   const htmlOptions = {
+    padeIdentifier: 'ticketProffer',
     pageTitle: options.manager.pageTitle + ' - Ticket Proffer',
     logoUrl: options.manager.logoUrl,
     footerEntries: options.manager.footerEntries,
-    navLinks: [
-      {
-        text: 'Admin',
-        href: '../admin/',
-      },
-    ],
     errorContent: ['Unable to send ticket.'],
   };
+  th.navLinks(pagePathLevel, ctx, htmlOptions);
+  sessionNavLinks(pagePathLevel, ctx, htmlOptions);
   const content = [
     mainContent(ctx),
   ];
-  return th.htmlPage(2, ctx, htmlOptions, content);
+  return th.htmlPage(pagePathLevel, ctx, htmlOptions, content);
 };
\ No newline at end of file