DEV: add vote count tag class (#104)

This commit is contained in:
Kris 2021-10-21 10:26:28 -04:00 committed by GitHub
parent fc4d23174e
commit 36a41c2969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ function initialize(api) {
let userVotedClass = topic.user_voted ? " voted" : ""; let userVotedClass = topic.user_voted ? " voted" : "";
buffer.push( buffer.push(
`<a href='${topic.url}' class='list-vote-count discourse-tag simple${userVotedClass}'${title}>` `<a href='${topic.url}' class='list-vote-count vote-count-${topic.vote_count} discourse-tag simple${userVotedClass}'${title}>`
); );
buffer.push(I18n.t("voting.votes", { count: topic.vote_count })); buffer.push(I18n.t("voting.votes", { count: topic.vote_count }));