mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
WIP user-icons
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user