X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=templates%2F_macros.html;fp=templates%2F_macros.html;h=25d94c58ce72a0a52f483c3251a30f9c3496ab51;hb=f59afccd32d45e60c48d451e6b8304a817627c62;hp=0000000000000000000000000000000000000000;hpb=b0758d1c63db38867ef12ee89317524a7436129d;p=plomtask
diff --git a/templates/_macros.html b/templates/_macros.html
new file mode 100644
index 0000000..25d94c5
--- /dev/null
+++ b/templates/_macros.html
@@ -0,0 +1,55 @@
+{% macro edit_buttons() %}
+
+
+
+
+{% endmacro %}
+
+
+
+{% macro datalist_of_titles(title, candidates) %}
+
+{% endmacro %}
+
+
+
+{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add") %}
+
+{{add_string}}:
+{% endmacro %}
+
+
+
+{% macro history_page(item_name, item, attribute_name, attribute, as_pre=false) %}
+{{item_name}} {{attribute_name}} history
+
+
+
+{{item_name}} |
+{{item.title.newest|e}} |
+
+
+{% for date in attribute.history.keys() | sort(reverse=True) %}
+
+{{date | truncate(19, True, '') }} |
+{% if as_pre %}{% endif %}{{attribute.history[date]}}{% if as_pre %} {% endif %} |
+
+{% endfor %}
+
+
+{% endmacro %}