X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftemplate%2Froot-html.js;h=d035bb8c342da6ca94b3f93fd4f25cfcb1398a4d;hb=1c37a7c533a5530390489ea9a49dcca492db1074;hp=14b9d4773c7e8dfcb5e5659a1b6b2cf6ef471b73;hpb=3c547e314b79a31fb3f15412a47707a22dc3eefd;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index 14b9d47..d035bb8 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -2,8 +2,14 @@ const th = require('./template-helper'); +/** + * + * @param {string} pageTitle page title + * @param {string} logoUrl logo url + * @returns {string} element + */ function hAppSection(pageTitle, logoUrl) { - return ` `; } +/** + * + * @param {string} contactHTML html + * @returns {string} html + */ function contactSection(contactHTML) { let section = ''; if (contactHTML) { @@ -133,15 +153,15 @@ ${contactHTML} /** * - * @param {Object} ctx - * @param {Object} options - * @param {Object} options.manager - * @param {String} options.adminContactHTML - * @param {String} options.manager.pageTitle - * @param {String} options.manager.publicHub - * @param {Object} options.dingus - * @param {String} options.dingus.selfBaseUrl - * @returns {String} + * @param {object} ctx context + * @param {object} options options + * @param {object} options.manager manager options + * @param {string} options.adminContactHTML html + * @param {string} options.manager.pageTitle title + * @param {string} options.manager.publicHub is public + * @param {object} options.dingus dingus options + * @param {string} options.dingus.selfBaseUrl url + * @returns {string} html */ module.exports = (ctx, options) => { const pageTitle = options.manager.pageTitle; @@ -160,11 +180,10 @@ module.exports = (ctx, options) => { navLinks, }; const content = [ - '', // This fixes a layout rendering flash on load in FF; do not know why this works but it does. aboutSection(), usageSection(isPublicHub, hubURL), contactSection(contactHTML), hAppSection(pageTitle, options.manager.logoUrl), ]; - return th.htmlPage(1, ctx, htmlOptions, content); + return th.htmlPage(0, ctx, htmlOptions, content); }; \ No newline at end of file