Mercurial > farol > farolluz
view farolluz/templates/html.j2 @ 48:3826f2701ff2
CPE: Add the possibility to add ourself integrally to the product tree
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 30 Dec 2014 12:30:19 +0100 |
parents | ba0eb65d4134 |
children |
line wrap: on
line source
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{ cvrf._title }}</title> </head> <body> <article> <header> <hgroup> <h1>{{ cvrf._title }}</h1> <h2>{{ cvrf._type }}</h2> </hgroup> </header> {%- for note in cvrf._notes %} <section> <h3>{{ note._title if note._title else note._type }}</h3> <p>{{ note._description }}</p> </section> {%- endfor %} {%- for vuln in cvrf._vulnerabilities %} <article> <header> {%- if vuln._title %}<h2>{{ vuln._title }}</h2>{% endif %} {%- if vuln._cve %}<h2>{{ vuln._cve }}</h2>{% endif %} </header> {%- for note in vuln._notes %} <section> <h3>{{ note._title if note._title else note._type }}</h3> <p>{{ note._note }}</p> </section> {%- endfor %} <section> <h3>Affected</h3> <ul> {%- for status in vuln._productstatuses %} <li>{{status._type}}: {% set comma = joiner(', ') %} {%- for prodid in status._productids %} {%- with product = cvrf.getProductForID(prodid) %} {{- comma() }}{{ product._name }} {%- endwith %} {%- endfor -%} </li> {%- endfor %} </ul> </section> {%- with cvss = vuln._cvss %}{% if cvss %} <section> <h3>Severity</h3> <p><tt>{{ cvss._vector }}</tt> ({{ cvss._basescore }} - {{ cvss._basescore | risk_factor }})<p> </section> {%- endif %}{% endwith %} <section> <h3>Resolution</h3> {%- for rem in vuln._remediations %} <section> <h4>{{ rem._type }}</h4> <p>{{ rem._description }}</p> </section> {%- endfor %} </section> {%- if vuln._references %} <section> <h3>References</h3> <ul> {%- for ref in vuln._references %} <li><a href="{{ ref._url }}">{{ ref._description }}</a></li> {%- endfor %} </ul> </section> {%- endif %} </article> {%- endfor %} <section> <h3>History</h3> <ul> {%- for revision in cvrf._tracking._history %} <li>{{ revision._date.strftime('%Y-%m-%d')}}: {{ revision._description }}</li> {%- endfor %} </ul> </section> {%- if cvrf._references %} <section> <h3>References</h3> <ul> {%- for ref in cvrf._references %} <li><a href="{{ ref._url }}">{{ ref._description }}</a></li> {%- endfor %} </ul> </section> {%- endif %} </article> </body> </html>