helpers.js (client/server); closes #1275
parent
eab0ca7463
commit
3ae8aa1c55
@ -0,0 +1,30 @@
|
|||||||
|
"use strict";
|
||||||
|
/*global templates*/
|
||||||
|
|
||||||
|
|
||||||
|
(function(module) {
|
||||||
|
var helpers = {},
|
||||||
|
templates = templates || require('./templates');
|
||||||
|
|
||||||
|
|
||||||
|
helpers.displayUsersLink = function(config) {
|
||||||
|
return (config.isLoggedIn && !config.privateUserInfo);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ('undefined' !== typeof window) {
|
||||||
|
$(document).ready(module.exports);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = function() {
|
||||||
|
templates.registerHelper('displayUsersLink', helpers.displayUsersLink);
|
||||||
|
};
|
||||||
|
|
||||||
|
})('undefined' === typeof module ? {
|
||||||
|
module: {
|
||||||
|
exports: {}
|
||||||
|
}
|
||||||
|
} : module);
|
Loading…
Reference in New Issue