Mercurial > farol > farol
diff farol/templates/vulnerability/view_remediation.j2 @ 105:09915cbdf549
Unify the add / edit / delete buttons
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 14 Oct 2014 14:36:31 +0200 |
parents | 0b64dc3f50eb |
children |
line wrap: on
line diff
--- a/farol/templates/vulnerability/view_remediation.j2 Tue Oct 14 10:36:58 2014 +0200 +++ b/farol/templates/vulnerability/view_remediation.j2 Tue Oct 14 14:36:31 2014 +0200 @@ -24,11 +24,11 @@ -#} {% extends "vulnerability/base.j2" %} -{% from "macros.j2" import label_value, panel, delete_button %} +{% from "macros.j2" import label_value, panel, edit_button, delete_button %} {% block title %}{{ remediation.getTitle() }}{% endblock %} {% block i_content %} -<a class="pull-right" href="{{ url_for('.edit_remediation', ordinal=ordinal, index=index) }}">edit</a> +<div class="pull-right">{{ edit_button(url_for('.edit_remediation', ordinal=ordinal, index=index)) }}</div> <div class='page-header'> <h1>{{ remediation._type }}</h1> </div> @@ -39,7 +39,7 @@ {{ label_value('URL', remediation._url | urlize) }} </div> {% if remediation._productids or remediation._groupids %} - {% call panel(heading="Products (%d)" % remediation._productids | length, title=2) %} + {% call panel(heading="Products", badge=remediation._productids | length, title=2) %} <ul> {% for productid in remediation._productids %} <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ cvrf.getProductForID(productid)._name }}</a></li>