*/
module.exports = (ctx, options) => {
const pageTitle = `${options.manager.pageTitle} - Topics`;
- const headElements = [];
- const navLinks = [];
+ const logoUrl = options.manager.logoUrl;
const footerEntries = options.manager.footerEntries;
if (!ctx.topics) {
ctx.topics = [];
}
- return th.htmlTemplate(ctx, 1, pageTitle, headElements, navLinks, [
+
+ const htmlOptions = {
+ pageTitle,
+ logoUrl,
+ footerEntries,
+ };
+
+ const content = [
` <section class="topics">
<p>${ctx.topics.length ? ctx.topics.length : 'no'} topic${(ctx.topics.length === 1) ? '' : 's'}</p>
<table>
` </tbody>
</table>
</section>`,
- ], footerEntries);
+ ];
+
+ return th.htmlPage(1, ctx, htmlOptions, content);
};
\ No newline at end of file