@@ -135,17 +192,17 @@ function mainContent(ctx) {
\t\t\t
\t\t\t
\t\t\t
-\t\t\t
+\t\t\t
\t\t
\t
\tTokens
-\t
`;
}
/**
*
- * @param {Object} ctx
- * @param {Object} ctx.profilesScopes.scopeIndex
- * @param {String[]} ctx.profilesScopes.profiles
- * @param {Object[]} ctx.tokens
- * @param {Object} options
- * @param {Object} options.manager
- * @param {String} options.manager.pageTitle
- * @param {String} options.manager.logoUrl
- * @param {String[]} options.manager.footerEntries
- * @returns {String}
+ * @param {object} ctx context
+ * @param {object} ctx.profilesScopes.scopeIndex scopes
+ * @param {string[]} ctx.profilesScopes.profiles profiles
+ * @param {object[]} ctx.tokens tokens
+ * @param {object} options options
+ * @param {object} options.manager manager options
+ * @param {string} options.manager.pageTitle page title
+ * @param {string} options.manager.logoUrl logo url
+ * @param {string[]} options.manager.footerEntries footer entries
+ * @returns {string} page
*/
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),
];