Minors template improvements

If CVE is TBD then it's not used in reporters and mitre reference.
Also adds wordwrap to notes.

Change-Id: I5c649aea967868ce0726eac9e374f4f4f83d2cb6
This commit is contained in:
Tristan Cacqueray 2015-01-15 14:49:24 +00:00
parent eb2776f714
commit 8edd3ec4a5
1 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,8 @@ Credits
~~~~~~~
{% for reporter in reporters %}
{% if 'affiliation' in reporter and reporter['affiliation'] and reporter['affiliation'] != 'UNKNOWN' %}
- {{ reporter['name'] | trim | indent }} from {{ reporter ['affiliation'] }} ({{ reporter['reported'] | csv_list }})
- {{ reporter['name'] | trim | indent }} from {{ reporter ['affiliation'] }}{% if 'reported' in reporter %} ({{ reporter['reported'] | csv_list }}){% endif %}
{% else %}
- {{ reporter['name'] | trim | indent }} ({{ reporter['reported'] | csv_list }})
{% endif %}
@ -54,16 +55,16 @@ References
{% for link in issues['links'] %}
- {{ link }}
{% endfor %}
{% for vuln in vulnerabilities %}
{% for vuln in vulnerabilities %}{% if vuln['cve-id'] != 'TBD' %}
- http://cve.mitre.org/cgi-bin/cvename.cgi?name={{ vuln['cve-id'] }}
{% endfor %}
{% endif %}{% endfor %}
{% if notes %}
Notes
~~~~~
{% for note in notes %}
- {{ note }}
- {{ note | wordwrap(width=77, break_long_words=False, wrapstring='\n ') }}
{% endfor %}
{% endif %}
{% if errata %}