From 8b08c8ef55c9d30e91b5b4f93c6adee723f58ae3 Mon Sep 17 00:00:00 2001 From: ughblah Date: Tue, 13 Mar 2012 14:03:27 -0500 Subject: [PATCH] Fix issue with up/down votes from recently viewed links causing score to disappear --- r2/r2/templates/link.htmllite | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/r2/r2/templates/link.htmllite b/r2/r2/templates/link.htmllite index 52817a158..258f76bcc 100644 --- a/r2/r2/templates/link.htmllite +++ b/r2/r2/templates/link.htmllite @@ -72,16 +72,17 @@ %endif > %if not expanded: - <% - if thing.likes is False: - score, cls = thing.display_score[0], "dislikes" - elif thing.likes is None: - score, cls = thing.display_score[1], "unvoted" - else: - score, cls = thing.display_score[2], "likes" + <% + score_dislikes, score_unvoted, score_likes = thing.display_score %> - - ${score} + + ${score_dislikes} + + + ${score_unvoted} + + | %endif