From: Matthijs Kooijman Date: Sat, 9 Feb 2008 00:45:04 +0000 (+0100) Subject: * Only show the longterm in the email and detail template when it is set to yes. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=483829feb4f219b31afebaf1d5f7136dfcc05a18 * Only show the longterm in the email and detail template when it is set to yes. --- diff --git a/templates/influences/email/influence_changed.html b/templates/influences/email/influence_changed.html index 2940301..3c56337 100644 --- a/templates/influences/email/influence_changed.html +++ b/templates/influences/email/influence_changed.html @@ -28,7 +28,9 @@ You have submitted an influence on {{ creation_date }}. {% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }} {% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }} {% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }} +{% if influence.longterm %} {% filter ljust:20%}{% trans "Long term" %}:{%endfilter%}{{ influence.longterm|yesno|capfirst }} +{% endif %} {% trans "Description" %}: {% filter wordwrap:72 %} {{ influence.description }} diff --git a/templates/influences/influence_detail.html b/templates/influences/influence_detail.html index 4060a27..e3aaf82 100644 --- a/templates/influences/influence_detail.html +++ b/templates/influences/influence_detail.html @@ -7,6 +7,9 @@ +{% if object.longterm %} + +{% endif %}
{% trans "Contact" %}:{{ object.contact }}
{% trans "Character" %}:{{ object.character }}
{% trans "Long term" %}:{{ object.longterm|yesno|capfirst }}

{{ object.description }}

{% endblock %}