X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=templates%2Finfluences%2Fcharacter_detail_block.html;h=ae325f2486dfe42a151e78e305fdd0c645de8bb7;hb=884bf66b55546555bfd3df318b9318e8358b02cf;hp=b0211d7bf479ded7f8f85bb5ae68e7c984a94d27;hpb=d6558353b23b3f16e319e233d1a6dbd190d7e3bf;p=matthijs%2Fprojects%2Fxerxes.git
diff --git a/templates/influences/character_detail_block.html b/templates/influences/character_detail_block.html
index b0211d7..ae325f2 100644
--- a/templates/influences/character_detail_block.html
+++ b/templates/influences/character_detail_block.html
@@ -6,18 +6,25 @@
{% trans "This character is approved by the SLs" %}
{% endifequal %}
-
{% blocktrans with object.name as name %}Influences initiated by {{ name }}{% endblocktrans %}
-
-{% for influence in object.initiated_influences.all %}
- - {{ influence }}
-{% endfor %}
-
-
-{% blocktrans with object.name as name %}Influences {{ name }} is involved in{% endblocktrans %}
-
-{% for influence in object.influences_involved_in.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" %}