mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03: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
13 lines
485 B
JavaScript
13 lines
485 B
JavaScript
var _ = require('lodash'),
|
|
utils;
|
|
|
|
utils = {
|
|
assetTemplate: _.template('<%= source %>?v=<%= version %>'),
|
|
linkTemplate: _.template('<a href="<%= url %>"><%= text %></a>'),
|
|
scriptTemplate: _.template('<script src="<%= source %>?v=<%= version %>"></script>'),
|
|
inputTemplate: _.template('<input class="<%= className %>" type="<%= type %>" name="<%= name %>" <%= extras %> />'),
|
|
isProduction: process.env.NODE_ENV === 'production'
|
|
};
|
|
|
|
module.exports = utils;
|