X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Ftemplate%2Fhelpers.js;h=8adeb206a04b47d8db34d8f90c9e795f0dc64372;hb=9c8e775e5ab96a1788f535760bfa72205c430d15;hp=67162f867f8ae784e215b43a829ed5c99b05fd70;hpb=786f4aa122c3c3a1c1c8224abacd12d0ca079cd0;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) {