X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=templates%2Finfluences%2Fcharacter_detail_block.html;h=ae325f2486dfe42a151e78e305fdd0c645de8bb7;hb=eb845e4ffb2eb95d9f2e4375f921fa52e10e0fb7;hp=6c0a67bbd151f67bd2c0f3bff2b955e955b21f7d;hpb=bf8c3434c59c55704ce931a0954bd1e30c4e02f1;p=matthijs%2Fprojects%2Fxerxes.git
diff --git a/templates/influences/character_detail_block.html b/templates/influences/character_detail_block.html
index 6c0a67b..ae325f2 100644
--- a/templates/influences/character_detail_block.html
+++ b/templates/influences/character_detail_block.html
@@ -5,11 +5,26 @@
{% else %}
{% trans "This character is approved by the SLs" %}
{% endifequal %}
-
{% blocktrans with object.name as name %}Influences for {{ name }}{% endblocktrans %}
-
-{% for influence in object.influence_set.all %}
- - {{ influence }}
-{% endfor %}
-
+
+{% if object.initiated_influences.all or object.influences_involved_in.all %}
+ {% if object.initiated_influences.all %}
+ {% blocktrans with object.name as name %}Influences initiated by {{ name }}{% endblocktrans %}
+
+ {% for influence in object.initiated_influences.all %}
+ - {{ influence }}
+ {% endfor %}
+
+ {% endif %}
+ {% if object.influences_involved_in.all %}
+ {% blocktrans with object.name as name %}Influences {{ name }} is involved in{% endblocktrans %}
+
+ {% for influence in object.influences_involved_in.all %}
+ - {{ influence }}
+ {% endfor %}
+
+ {% endif %}
+{% else %}
+ {% trans "No influences yet." %}
+{% endif %}
{% trans "Submit influence" %}