Mercurial > farol > farol
diff farol/templates/producttree/view_product.j2 @ 87:e02724c84bae
Add deletion of (orphaned) relationships
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 09 Oct 2014 15:16:30 +0200 |
parents | cc836f9e869e |
children | 09915cbdf549 |
line wrap: on
line diff
--- a/farol/templates/producttree/view_product.j2 Thu Oct 09 14:50:37 2014 +0200 +++ b/farol/templates/producttree/view_product.j2 Thu Oct 09 15:16:30 2014 +0200 @@ -49,11 +49,14 @@ {% endfor %} {% endcall %} {% endif %} + <div> <p>This product belong to the following groups:</p> <ul> {% for group in cvrf._producttree._groups if product._productid in group._productids %} <li>{{ group.getTitle() }}</li> +{% else %} + <li><em>None</em></li> {% endfor %} </ul> </div>