summaryrefslogtreecommitdiffstats
path: root/askbot/templates/widgets/user_perms.html
blob: a51a88825f7d8a2e0753f6181eeb5ddf67eeb232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--h2>{% trans karma=user.reputation %}Your karma is {{ karma }}{% endtrans %}</h2-->
<div class="triangle"></div>
<p>
    {% trans %}Karma reflects how valuable is your contribution to this community.{% endtrans %}
</p>
<p>
    {% if user.is_administrator_or_moderator() %}
        {% if user.is_moderator() %}
            {% set role=gettext('moderator') %}
        {% else %}
            {% set role=gettext('administrator') %}
        {% endif %}
        {% trans %}Since you are the site {{ role }}, you have access to all functions regardless of your karma.{% endtrans %}
    {% else %}
        {% trans %}The higher is your karma, the more rights you have on this site.{% endtrans %}
    {% endif %}
</p>
{% if not user.is_administrator_or_moderator() %}
<p> {% trans %}Currently, you can:{% endtrans %}</p>
<ul>
    <li>{% trans %}Post questions, answers and comments{% endtrans %}</li>
    {% for perm in perms_data %}
        {% if user.reputation >= perm[1] %}
            <li>{{ perm[0] }}</li>
        {% endif %}
    {% endfor %}
</ul>
{% endif %}