feat(users): show user signature in forum topic and replies

This commit is contained in:
OldHawk
2017-11-08 16:45:31 +08:00
parent ddc90ac902
commit 79179766c9
7 changed files with 63 additions and 11 deletions

View File

@@ -78,6 +78,7 @@
forumId: $stateParams.forumId,
topicId: $stateParams.topicId
}, function (topic) {
mtDebug.info(topic);
vm.topic = topic;
vm.buildPager();
@@ -96,6 +97,17 @@
}
};
/**
* getUserSignatureMarked
* @param u
* @returns {*}
*/
vm.getUserSignatureMarked = function (u) {
if (u) {
return marked(u.signature, {sanitize: true});
}
};
/**
* getUserScoreLevel
* @param u