{% load i18n localcosmos_tags %}
{% for point_rule in point_rules %}
{{ point_rule.name }} {{ point_rule.points }} {% trans 'points' %}

{% trans 'Conditions' %}
{% if point_rule.conditions.exists %} {{ point_rule.match_mode_display }} {% endif %}
{% for condition in point_rule.conditions.all %}
{% point_rule_condition_edit_url app.uid point_rule.id condition as condition_edit_url %}
{{ condition }}
{% if condition.content_object %}
{{ condition.content_object }}
{% endif %}
{% empty %}
{% trans 'You have no conditions configured yet' %}
{% endfor %}

{% empty %}
{% trans 'You have no point rules configured yet' %}
{% endfor %}