mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
const title = attrs.liked
|
||||||
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
|
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
|
||||||
: 'post.has_likes_title';
|
: 'post.has_likes_title';
|
||||||
|
const contents = (attrs.post_number == 1) ? I18n.t("post.has_likes", { count }) : count;
|
||||||
|
|
||||||
return { action: 'toggleWhoLiked',
|
return { action: 'toggleWhoLiked',
|
||||||
title,
|
title,
|
||||||
className: 'like-count highlight-action',
|
className: 'like-count highlight-action',
|
||||||
contents: I18n.t("post.has_likes", { count }),
|
contents,
|
||||||
titleOptions: {count: attrs.liked ? (count-1) : count }
|
titleOptions: {count: attrs.liked ? (count-1) : count }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user