diff --git a/r2/r2/templates/comment.compact b/r2/r2/templates/comment.compact index b15c59afd..f52bf2e12 100644 --- a/r2/r2/templates/comment.compact +++ b/r2/r2/templates/comment.compact @@ -61,7 +61,12 @@
${WrappedUser(thing.author, thing.attribs, thing, gray = collapse).render()} - ${score(thing, thing.likes, tag='span')} + %if thing.score_hidden: + [${_("score hidden")}] + %else: + ${score(thing, thing.likes, tag='span')} + %endif + ## thing.timesince is a cache stub ${unsafe(_("%(timeago)s ago") % dict(timeago=thing.timesince))} % if thing.gilded_message: diff --git a/r2/r2/templates/comment.htmllite b/r2/r2/templates/comment.htmllite index 468e7546d..6e812c541 100644 --- a/r2/r2/templates/comment.htmllite +++ b/r2/r2/templates/comment.htmllite @@ -52,7 +52,11 @@ ${thing.author.name} - ${thing.score} ${ungettext("point", "points", thing.score)} + %if thing.score_hidden: + [${_("score hidden")}] + %else: + ${thing.score} ${ungettext("point", "points", thing.score)} + %endif ${thing.timesince} permalink diff --git a/r2/r2/templates/comment.mobile b/r2/r2/templates/comment.mobile index 3a1e0b813..342d8f8df 100644 --- a/r2/r2/templates/comment.mobile +++ b/r2/r2/templates/comment.mobile @@ -49,7 +49,13 @@

${WrappedUser(thing.author, thing.attribs, thing, gray = collapse).render()} -  |${thing.score} ${ungettext("point", "points", thing.score)} +  | + %if thing.score_hidden: + [${_("score hidden")}] + %else: + ${thing.score} ${ungettext("point", "points", thing.score)} + %endif + ${_("written")} ${thing.timesince} ${_("ago")}

${unsafe(safemarkdown(thing.body, nofollow=thing.nofollow))}