From: Matthijs Kooijman Date: Fri, 16 Jan 2009 22:12:11 +0000 (+0100) Subject: Improve character_detail_block template. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=86800ade2dc1966a05ddc437ca67111dd87fd34f Improve character_detail_block template. The character detail now only shows the influence headings when there is something to show. --- 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" %}