Mercurial > farol > farol
diff farol/templates/document/view.j2 @ 73:88adf067cae1
Fix delete urls
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 11:14:50 +0200 |
parents | f9aa7b1e697e |
children | 09915cbdf549 |
line wrap: on
line diff
--- a/farol/templates/document/view.j2 Thu Oct 09 10:31:06 2014 +0200 +++ b/farol/templates/document/view.j2 Thu Oct 09 11:14:50 2014 +0200 @@ -62,7 +62,7 @@ <div class="form-horizontal"> <div class="pull-right"> <a href="{{ url_for('.edit_revision', index=loop.index0) }}"><span class="label label-default">edit</span></a> - {{ delete_button(url_for('.del_revision'), {'index': loop.index0}) }} + {{ delete_button(url_for('.del_revision', index=loop.index0)) }} </div> {{ label_value('Number', revision._number | join('.'), right=8) }} {{ label_value('Date', revision._date) }} @@ -118,7 +118,7 @@ {% call panel(type="warning", heading="References", badge=cvrf._references | length, title=3) %} <ul> {% for reference in cvrf._references %} - <li><a href="{{ reference._url }}" target="_blank">{{ reference._description }}{% if reference._type %} ({{ reference._type }}){% endif %}</a> (<a href="{{ url_for('.edit_reference', index=loop.index0) }}">edit</a>){{ delete_button(url_for('.del_reference'), {'index': loop.index0}) }}</li> + <li><a href="{{ reference._url }}" target="_blank">{{ reference._description }}{% if reference._type %} ({{ reference._type }}){% endif %}</a> (<a href="{{ url_for('.edit_reference', index=loop.index0) }}">edit</a>){{ delete_button(url_for('.del_reference', index=loop.index0)) }}</li> {% endfor %} </ul> <a class="pull-right" href="{{ url_for('.add_reference') }}">add</a>