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/static/git-logo.png?a=blobdiff_plain;f=templates%2F_macros.html;h=55ab626b1fe6bbb7f49b3ab41c9dbb24bf56d792;hb=57364f285cc2d26f3f3984f0d71e76af4e79e3d3;hp=14395914052efd6511eddc6cc82bbe947dda62c4;hpb=214aeb0f2e29712518dc776b0713bcdbb8945a2f;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index 1439591..55ab626 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -1,16 +1,27 @@ {% macro edit_buttons() %} +
+
{% endmacro %} -{% macro datalist_of_titles(title, candidates) %} +{% macro datalist_of_titles(title, candidates, historical=false, with_comments=false) %} {% for candidate in candidates %} - + {% endfor %} {% endmacro %} @@ -39,6 +50,7 @@ {% macro history_page(item_name, item, attribute_name, attribute, as_pre=false) %}

{{item_name}} {{attribute_name}} history

+
@@ -46,12 +58,15 @@ + {% for date in attribute.history.keys() | sort(reverse=True) %} - + {% endfor %}
{{item.title.newest|e}}
{{date | truncate(19, True, '') }} {% if as_pre %}
{% endif %}{{attribute.history[date]}}{% if as_pre %}
{% endif %}
+ +
{% endmacro %}