[PATCH 11 of 54] Output multiple Name and Organization per Acknowledgment
Wald Commits
scm-commit at wald.intevation.org
Wed Jan 7 10:56:28 CET 2015
# HG changeset patch
# User Benoît Allard <benoit.allard at greenbone.net>
# Date 1412765119 -7200
# Node ID 7998a57c9b48da4337f97d6e93c304e3513740a6
# Parent 4c6e15514a6dc4e8c4280ccca7602ace38fe338e
Output multiple Name and Organization per Acknowledgment
diff -r 4c6e15514a6d -r 7998a57c9b48 farolluz/templates/cvrf.j2
--- a/farolluz/templates/cvrf.j2 Wed Oct 08 12:44:20 2014 +0200
+++ b/farolluz/templates/cvrf.j2 Wed Oct 08 12:45:19 2014 +0200
@@ -118,12 +118,12 @@
<Acknowledgments>
{%- for acknowledgment in cvrf._acknowledgments %}
<Acknowledgment>
- {%- if acknowledgment._name %}
- <Name>{{ acknowledgment._name }}</Name>
- {%- endif %}
- {%- if acknowledgment._organization %}
- <Organization>{{ acknowledgment._organization }}</Organization>
- {%- endif %}
+ {%- for name in acknowledgment._names %}
+ <Name>{{ name }}</Name>
+ {%- endfor %}
+ {%- for organization in acknowledgment._organizations %}
+ <Organization>{{ organization }}</Organization>
+ {%- endfor %}
{%- if acknowledgment._description %}
<Description>{{ acknowledgment._description }}</Description>
{%- endif %}
More information about the Farol-commits
mailing list