From 794517fda1cf0d1b1f804e978a68246a6028b895 Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Tue, 30 Apr 2013 09:58:07 -0600 Subject: [PATCH] Add "[score hidden]" marker Includes tooltip with info about the length of the hide period --- r2/r2/templates/comment.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/r2/r2/templates/comment.html b/r2/r2/templates/comment.html index 63535b66b..2f83f9eb1 100755 --- a/r2/r2/templates/comment.html +++ b/r2/r2/templates/comment.html @@ -109,8 +109,14 @@ ${parent.collapsed()} %if collapse and thing.collapsed and show: ${thing.collapsed_reason} %else: - %if show and not thing.score_hidden: - ${unsafe(self.score(thing, likes = thing.likes))} + %if show: + %if thing.score_hidden: + + [${_("score hidden")}] + + %else: + ${unsafe(self.score(thing, likes = thing.likes))} + %endif %endif ${thing_timestamp(thing, thing.timesince)} ${_("ago")} ${edited(thing, thing.lastedited)}