X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=inline;f=templates%2Finfluences%2Fcharacter_detail_block.html;h=ae325f2486dfe42a151e78e305fdd0c645de8bb7;hb=dad2574dc3f0cc1d114a85ac44ef440b5baeeaa8;hp=a206cf45fbc6e9eaec4b7d6a350ac95259d71607;hpb=2c8eeac0d22b770a655835ad2e1361d979418412;p=matthijs%2Fprojects%2Fxerxes.git
diff --git a/templates/influences/character_detail_block.html b/templates/influences/character_detail_block.html
index a206cf4..ae325f2 100644
--- a/templates/influences/character_detail_block.html
+++ b/templates/influences/character_detail_block.html
@@ -6,11 +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 %}
-
+{% 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" %}