mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:46:08 +08:00
UX: remove the word 'likes' from the like counters on posts within topic
This commit is contained in:
parent
fda8b3d879
commit
6bef0428cc
@ -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 }
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user