Merge pull request #4497 from gdpelican/allow-avatar-title-option

FEATURE: Allow title override for user avatars
This commit is contained in:
Guo Xiang Tan 2016-10-14 10:27:20 +08:00 committed by GitHub
commit dff5d6d9b0

View File

@ -11,8 +11,8 @@ function renderAvatar(user, options) {
if (!username || !avatarTemplate) { return ''; }
let title;
if (!options.ignoreTitle) {
let title = options.title;
if (!title && !options.ignoreTitle) {
// first try to get a title
title = Em.get(user, 'title');
// if there was no title provided