projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bump package version to 1.3.12
[websub-hub]
/
src
/
template
/
admin-overview-html.js
diff --git
a/src/template/admin-overview-html.js
b/src/template/admin-overview-html.js
index fd0261f53c85618eb6310e1fdd53bf2115bacb27..948bdbb0083fa77917a7f5b96dc61eb94557be92 100644
(file)
--- a/
src/template/admin-overview-html.js
+++ b/
src/template/admin-overview-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');
/**
* Show a summary of all topics.
/**
* Show a summary of all topics.
@@
-12,6
+13,7
@@
const th = require('./template-helper');
* @returns {string} html
*/
module.exports = (ctx, options) => {
* @returns {string} html
*/
module.exports = (ctx, options) => {
+ const pagePathLevel = 1;
const pageTitle = `${options.manager.pageTitle} - Topics`;
const logoUrl = options.manager.logoUrl;
const footerEntries = options.manager.footerEntries;
const pageTitle = `${options.manager.pageTitle} - Topics`;
const logoUrl = options.manager.logoUrl;
const footerEntries = options.manager.footerEntries;
@@
-20,10
+22,13
@@
module.exports = (ctx, options) => {
}
const htmlOptions = {
}
const htmlOptions = {
+ pageIdentifier: 'admin',
pageTitle,
logoUrl,
footerEntries,
};
pageTitle,
logoUrl,
footerEntries,
};
+ th.navLinks(pagePathLevel, ctx, htmlOptions);
+ sessionNavLinks(pagePathLevel, ctx, htmlOptions);
const content = [
` <section class="topics">
const content = [
` <section class="topics">
@@
-39,5
+44,5
@@
module.exports = (ctx, options) => {
</section>`,
];
</section>`,
];
- 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