Ask Your Question

squallirvine's profile - activity

2018-06-01 11:40:48 -0500 received badge  Famous Question (source)
2013-07-03 15:50:04 -0500 answered a question Check if someone have a particular badge

I have an other question, do you know how to display an moderator user's answer in a different color for exemple red ?

2013-07-03 14:22:09 -0500 received badge  Student (source)
2013-07-03 13:52:34 -0500 received badge  Scholar (source)
2013-07-03 12:58:38 -0500 asked a question Check if someone have a particular badge

Hi,

I created a badge moderator and I want to check if the user have this badge to allow him to delete some posts.

For example, in the file askbot/templates/question/question_controls.html

I want to put that :

{% if <check if the logged user have the badge moderator (id = 34)> %}
<a id="post-{{question.id}}-delete" class="question-delete">
{% trans %}delete{% endtrans%}
</a>
{% endif %}