You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
508 B
JavaScript
30 lines
508 B
JavaScript
11 years ago
|
"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);
|