squallirvine's profile - activity
7 years ago | received badge | Famous Question (source) |
12 years ago | 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 ? |
12 years ago | received badge | Student (source) |
12 years ago | received badge | Scholar ( source ) |
12 years ago | 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 %}
|