UX: remove the word 'likes' from the like counters on posts within topic

This commit is contained in:
Arpit Jalan 2018-03-30 01:46:00 +05:30
parent fda8b3d879
commit 6bef0428cc

View File

@ -69,11 +69,12 @@ registerButton('like-count', attrs => {
const title = attrs.liked
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
: 'post.has_likes_title';
const contents = (attrs.post_number == 1) ? I18n.t("post.has_likes", { count }) : count;
return { action: 'toggleWhoLiked',
title,
className: 'like-count highlight-action',
contents: I18n.t("post.has_likes", { count }),
contents,
titleOptions: {count: attrs.liked ? (count-1) : count }
};
}