Mercurial > farol > farol
comparison farol/templates/vulnerability/view_note.j2 @ 89:e558238cfdb2
Add deletion of Vulnerabilities'Notes
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 15:50:31 +0200 |
parents | 4a9f23230eba |
children | 09915cbdf549 |
comparison
equal
deleted
inserted
replaced
88:521c0ec35338 | 89:e558238cfdb2 |
---|---|
22 # along with this program; if not, write to the Free Software | 22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | 23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
24 -#} | 24 -#} |
25 | 25 |
26 {% extends "vulnerability/base.j2" %} | 26 {% extends "vulnerability/base.j2" %} |
27 | 27 {% from "macros.j2" import delete_button %} |
28 {% block title %}{{ note._title }}{% endblock %} | 28 {% block title %}{{ note._title }}{% endblock %} |
29 | 29 |
30 {% block i_content %} | 30 {% block i_content %} |
31 <a class="pull-right" href="{{ url_for('.edit_note', ordinal=ordinal, note_ordinal=note._ordinal) }}">edit</a> | 31 <a class="pull-right" href="{{ url_for('.edit_note', ordinal=ordinal, note_ordinal=note._ordinal) }}">edit</a> |
32 <div class='page-header'> | 32 <div class='page-header'> |
33 <h1>{{ note._title or '' }} <small>{{ note._type }} (#{{ note._ordinal }})</small></h1> | 33 <h1>{{ note._title or '' }} <small>{{ note._type }} (#{{ note._ordinal }})</small></h1> |
34 </div> | 34 </div> |
35 {% if note._audience %}<p>Audience: <em>{{ note._audience }}</em></p>{% endif %} | 35 {% if note._audience %}<p>Audience: <em>{{ note._audience }}</em></p>{% endif %} |
36 <p>{{ note._note | replace('\n', '<br>') }}</p> | 36 <p>{{ note._note | replace('\n', '<br>') }}</p> |
37 <div class="pull-right">{{ delete_button(url_for('.del_note', ordinal=ordinal, note_ordinal=note._ordinal)) }}</div> | |
37 {% endblock %} | 38 {% endblock %} |