{% if topic.tags.all %}
- Tags:
{% for tag in topic.tags.all %}
- {{ tag }}
{% endfor %}
{% endif %}
Relations
asymmetric:
{% for rel in relations_asym %}
- {% if rel.A != topic %}{{ rel.A}}{% else %}{{ rel.A }}{% endif %} {{ rel.get_relation_display }} {% if rel.B != topic %}{{ rel.B }}{% else %}{{ rel.B }}{% endif %}
{% empty %}
- No relations have been defined
{% endfor %}
symmetric:
{% for rel in topic.relationsym_set.all %}
- {% for reltopic in rel.topics.all %}{% if reltopic != topic %}{{ reltopic }}{% else %}{{ reltopic }}{% endif %}, {% endfor %} {{ rel.get_relation_display }}
{% empty %}
- No symmetric relations have been defined
{% endfor %}