update depedencies, changes to support updated authentication-module
[squeep-indie-auther] / src / template / admin-html.js
index 085b95a0ed083eaf4fafa4c131a0496664d37f93..4fee8e74298e9de7fc22713f700060f1f87d2a9d 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 const th = require('./template-helper');
+const { sessionNavLinks } = require('@squeep/authentication-module');
 
 
 function renderProfileLI(profile) {
@@ -102,7 +103,7 @@ function tokenTable(tokens) {
 \t<thead>
 \t\t<tr>
 <th>Type</th>
-\t\t\t<th>Client Identifier</th>
+\t\t\t<th>Client Identifier / Ticket Subject</th>
 \t\t\t<th>Profile</th>
 <th>Scopes</th>
 \t\t\t<th>Code</th>
@@ -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),
   ];