From 8981aa8ca09ca575cb9a4b92fc89a4e49e3288b9 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 3 Sep 2014 22:54:18 +0700 Subject: restore karma and badges display in user cards on Q&A content --- askbot/templates/macros.html | 4 ++-- askbot/templates/widgets/user_card.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/askbot/templates/macros.html b/askbot/templates/macros.html index 19aab815..5647d8d6 100644 --- a/askbot/templates/macros.html +++ b/askbot/templates/macros.html @@ -57,7 +57,7 @@ {% trans %}anonymous user{% endtrans %}

{{ revision.author.get_anonymous_name() }}

{% else %} - {{ user_card(revision.author, karma_mode=karma_mode, badges_mode=badges_mode) }} + {{ user_card(revision.author) }} {% endif %} {% if settings.GROUPS_ENABLED %} {{ user_primary_group(revision.author) }} @@ -626,7 +626,7 @@ for the purposes of the AJAX comment editor #} {{ user_country_name_and_flag(user) }} {%- endmacro -%} -{% macro user_card(user, karma_mode=None, badges_mode=None) %} +{% macro user_card(user) %} {% include "widgets/user_card.html" %} {% endmacro %} diff --git a/askbot/templates/widgets/user_card.html b/askbot/templates/widgets/user_card.html index af8555c0..04c66d99 100644 --- a/askbot/templates/widgets/user_card.html +++ b/askbot/templates/widgets/user_card.html @@ -11,11 +11,11 @@
- {% if karma_mode == 'public' %} + {% if settings.KARMA_MODE == 'public' %} {{ user.reputation }} {% endif %} - {% if badges_mode == 'public' %} + {% if settings.BADGES_MODE == 'public' %} {% if user.gold %} {{ user.gold }} -- cgit v1.2.3-1-g7c22