WIP user-icons

This commit is contained in:
Julian Lam
2015-09-27 12:57:21 -04:00
parent 839edc80b1
commit f6d5b52a8b
21 changed files with 112 additions and 46 deletions

View File

@@ -161,6 +161,14 @@
return locale.replace('_', '-');
};
helpers.renderTopicImage = function(topicObj) {
if (topicObj.thumb) {
return '<img src="' + topicObj.thumb + '" class="img-circle user-img" title="' + topicObj.user.username + '" />';
} else {
return '<img src="' + topicObj.user.picture + '" class="user-img" title="' + topicObj.user.username + '" />';
}
};
exports.register = function() {
var templates;