mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
c3dda5e5c4
refs #4993, #5073 - Removed nonexistent helpers siteDescription and bodyClass from admin templates - Changed password.hbs to private.hbs to match the route name - added a new input_password helper for rendering the password input with the correct properties - removed the forward input as this can be handled via urls only - moved 'private' to routeKeywords - added 'private' context - minor update to text next to the password in settings
24 lines
666 B
JavaScript
24 lines
666 B
JavaScript
// # Input Password Helper
|
|
// Usage: `{{input_password}}`
|
|
//
|
|
// Password input used on private.hbs for password-protected blogs
|
|
//
|
|
// We use the name meta_title to match the helper for consistency:
|
|
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
|
|
|
|
var hbs = require('express-hbs'),
|
|
utils = require('./utils'),
|
|
input_password;
|
|
|
|
input_password = function () {
|
|
var output = utils.inputTemplate({
|
|
type: 'password',
|
|
name: 'password',
|
|
className: 'private-login-password',
|
|
extras: 'autofocus="autofocus"'
|
|
});
|
|
|
|
return new hbs.handlebars.SafeString(output);
|
|
};
|
|
|
|
module.exports = input_password;
|