From 9a983203c4c22f6e6494f7596433e6c857f9a591 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 11 Sep 2016 15:12:19 +0200 Subject: do not count a user's own votes; prevents jumping jokes --- templates/index.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index d176cdc..b884c57 100644 --- a/templates/index.html +++ b/templates/index.html @@ -112,8 +112,19 @@
  • {% if not joke.deleted %} -
    - whatshot {{ joke.score }} Punkte +
    + whatshot + {{ joke.score }} + {% if joke.downvoted %} + + {% if user.loggedin %}-10{% else %}-1{% endif %} + + {% endif %} + {% if joke.upvoted %} + + {% if user.loggedin %}+10{% else %}+1{% endif %} + + {% endif %}
    -- cgit v1.3.1