X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Ftemplate%2Fhelpers.js;h=8adeb206a04b47d8db34d8f90c9e795f0dc64372;hb=ff66dd49a1b54935a20ea6e15bd036b8acd5e170;hp=67162f867f8ae784e215b43a829ed5c99b05fd70;hpb=2c3ddf0a6f40b9d0a4e54fa12b84b8af33eaaadc;p=squeep-authentication-module diff --git a/lib/template/helpers.js b/lib/template/helpers.js index 67162f8..8adeb20 100644 --- a/lib/template/helpers.js +++ b/lib/template/helpers.js @@ -2,15 +2,15 @@ /** * Populates nevLinks with (currently hardcoded) session-related links. - * @param {Number} pagePathLevel relative to base - * @param {Object} ctx - * @param {String=} ctx.url redirect on logout - * @param {Object=} ctx.session - * @param {String=} ctx.session.authenticatedIdentifier - * @param {String=} ctx.session.authenticatedProfile - * @param {Object} options - * @param {Object[]=} options.navLinks created if not present - * @param {String=} options.pageIdentifier + * @param {number} pagePathLevel relative to base + * @param {object} ctx context + * @param {string=} ctx.url redirect on logout + * @param {object=} ctx.session session object + * @param {string=} ctx.session.authenticatedIdentifier active authentication identifier + * @param {string=} ctx.session.authenticatedProfile active indieauth profile + * @param {object} options options + * @param {object[]=} options.navLinks created if not present + * @param {string=} options.pageIdentifier internal reference to page template being rendered */ function sessionNavLinks(pagePathLevel, ctx, options) { if (!options.navLinks) {