{{ user.username }}
-
{% with user|flag_count as user_flag_count %}
{% if user_flag_count %}
Flagged {{ user_flag_count }} times (status {{ user|flag_status }})
{% else %}
Never flagged
{% endif %}
{% endwith %}
-
{% if request.user.is_authenticated %}
{% if user|can_be_flagged_by:request.user %}
Flag
{% else %}
Cannot be flagged (no authorization or enough flagged)
{% endif %}
{% else %}
- You must be authenticated to flag !
{% endif %}