diff --git a/templates/macro/badge.html b/templates/macro/badge.html index 722a357..3d8a5e2 100644 --- a/templates/macro/badge.html +++ b/templates/macro/badge.html @@ -51,7 +51,9 @@ {% endmacro %} {% macro print(item, solo=false, last=false, header=false) %} + {% if item.fields.print %} {{ badge(url=item.url_for_print(), solo=solo, last=last, color='light border', icon='paint-brush-line', collapsible='Print') }} + {% endif %} {% endmacro %} {% macro set(set, solo=false, last=false, url=None, id=None) %}