X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=templates%2F_macros.html;h=cb1bb452d16f3671ab7108a159b1c581ec063890;hb=c39bd250d747d2dd0bebee8c2f99f2c0fac6926c;hp=25d94c58ce72a0a52f483c3251a30f9c3496ab51;hpb=f59afccd32d45e60c48d451e6b8304a817627c62;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index 25d94c5..cb1bb45 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -17,7 +17,7 @@ -{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add") %} +{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} {% for item in items %} @@ -25,7 +25,7 @@ {% endfor %}
-{{item.title.newest|e}} +{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}