From 483829feb4f219b31afebaf1d5f7136dfcc05a18 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sat, 9 Feb 2008 01:45:04 +0100 Subject: [PATCH] * Only show the longterm in the email and detail template when it is set to yes. --- templates/influences/email/influence_changed.html | 2 ++ templates/influences/influence_detail.html | 3 +++ 2 files changed, 5 insertions(+) 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 %} -- 2.30.2