From 86800ade2dc1966a05ddc437ca67111dd87fd34f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 16 Jan 2009 23:12:11 +0100 Subject: [PATCH] Improve character_detail_block template. The character detail now only shows the influence headings when there is something to show. --- .../influences/character_detail_block.html | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) 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 %}

- - -

{% blocktrans with object.name as name %}Influences {{ name }} is involved in{% endblocktrans %}

- +{% 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 %}

+ + {% endif %} + {% if object.influences_involved_in.all %} +

{% blocktrans with object.name as name %}Influences {{ name }} is involved in{% endblocktrans %}

+ + {% endif %} +{% else %} +

{% trans "No influences yet." %}

+{% endif %} {% trans "Submit influence" %} -- 2.30.2