X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=templates%2F_macros.html;h=a19c06381320461baf7b1622b475d7d0d244440b;hb=1a9178b2b7bb66e77f3df01a0c7b2812839637ba;hp=b1f0104e134363bc9b8dcd24f6d6066d08996f00;hpb=5383b5cf1520a1cb66b4966dd4ee449a99f5e465;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index b1f0104..a19c063 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -18,6 +18,7 @@ {% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} +{% if items|length > 0 %}
-{% if historical %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %} +{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %} |