projects
/
squeep-indie-auther
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update depedencies, changes to support updated authentication-module
[squeep-indie-auther]
/
src
/
template
/
root-html.js
diff --git
a/src/template/root-html.js
b/src/template/root-html.js
index 1c3f4ebec70a547e9151cd08a1d93e9fbda48f2e..2b7abfe076173c5b5872b122530eedf7dabcd7ab 100644
(file)
--- a/
src/template/root-html.js
+++ b/
src/template/root-html.js
@@
-1,6
+1,7
@@
'use strict';
const th = require('./template-helper');
'use strict';
const th = require('./template-helper');
+const { sessionNavLinks } = require('@squeep/authentication-module');
function aboutSection() {
return `
function aboutSection() {
return `
@@
-39,28
+40,22
@@
${contactHTML}
* @returns {String}
*/
module.exports = (ctx, options) => {
* @returns {String}
*/
module.exports = (ctx, options) => {
+ const pagePathLevel = 0;
const contactHTML = options.adminContactHTML;
const htmlOptions = {
const contactHTML = options.adminContactHTML;
const htmlOptions = {
+ pageIdentifier: 'root',
pageTitle: options.manager.pageTitle,
logoUrl: options.manager.logoUrl,
footerEntries: options.manager.footerEntries,
pageTitle: options.manager.pageTitle,
logoUrl: options.manager.logoUrl,
footerEntries: options.manager.footerEntries,
- navLinks: [
- {
- text: 'Admin',
- href: 'admin/',
- },
- {
- text: 'Ticket',
- href: 'admin/ticket',
- },
- ],
headElements: [
`<link rel="indieauth-metadata" href="${options.dingus.selfBaseUrl}${options.route.metadata}">`,
],
};
headElements: [
`<link rel="indieauth-metadata" href="${options.dingus.selfBaseUrl}${options.route.metadata}">`,
],
};
+ th.navLinks(pagePathLevel, ctx, htmlOptions);
+ sessionNavLinks(pagePathLevel, ctx, htmlOptions);
const content = [
aboutSection(),
contactSection(contactHTML),
];
const content = [
aboutSection(),
contactSection(contactHTML),
];
- return th.htmlPage(
1
, ctx, htmlOptions, content);
+ return th.htmlPage(
pagePathLevel
, ctx, htmlOptions, content);
};
\ No newline at end of file
};
\ No newline at end of file