diff --git a/r2/r2/templates/link.htmllite b/r2/r2/templates/link.htmllite index 73cd2b1f3..dcac03632 100644 --- a/r2/r2/templates/link.htmllite +++ b/r2/r2/templates/link.htmllite @@ -37,6 +37,12 @@ %endif +<%def name="hide_if_appropriate(state)"> + %if thing.like_cls != state: + ${optionalstyle("display: none;")} + %endif + + <%def name="entry()"> <% from r2.lib.strings import Score @@ -96,13 +102,13 @@ <% score_dislikes, score_unvoted, score_likes = thing.display_score %> - + ${score_dislikes} - + ${score_unvoted} -