From: Matthijs Kooijman Date: Tue, 13 Jan 2009 21:48:16 +0000 (+0100) Subject: Only show a list of involved when there are multiple. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=4fd6d240a2a07f511afbb83d7c03dfd5dad90554 Only show a list of involved when there are multiple. This uses the new list_or_value filter to not display a bullet when there is only one. --- diff --git a/templates/influences/influence_detail.html b/templates/influences/influence_detail.html index 9d983ce..ac3235c 100644 --- a/templates/influences/influence_detail.html +++ b/templates/influences/influence_detail.html @@ -1,11 +1,15 @@ {% extends "base/base.html" %} {% load i18n %} +{% load list %} {% block content %}

{{ object.summary }}

- +{% if object.involved %} + +{% endif %} {% if object.longterm %} {% endif %}
{% trans "Iniator" %}:{{ object.initiator }}
{% trans "Involved" %}:
    {{ object.involved|unordered_list }}
{% trans "Involved" %}: +{{ object.involved|list_or_value }}
{% trans "Long term" %}:{{ object.longterm|yesno|capfirst }}