X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fmacros.html;fp=todo_templates%2Fmacros.html;h=66751ac87543431c672fa8cb64485729cbd56865;hp=0000000000000000000000000000000000000000;hb=11df024d5f24e8d7916f57c907975ebe27db617f;hpb=2ad9f7785539c0cd9f119d1f22b8057fab348114 diff --git a/todo_templates/macros.html b/todo_templates/macros.html new file mode 100644 index 0000000..66751ac --- /dev/null +++ b/todo_templates/macros.html @@ -0,0 +1,41 @@ + + + +{% macro tagselection(submit_name, selected_tags, all_tags) %} + +{% for selected_tag in selected_tags | sort %} + +{% endfor %} + +{% for tag in all_tags %} +{% endfor %} + +{% endmacro %} + + + +{% macro sort_head(sort, name_internal, display_name, sort_key="sort") %} + +{{display_name}} + +{% endmacro %} + + + +{% macro doneness_string(todo, respect_cancelled=false, datalist_hack=false) %} +[{% if todo.done and not (respect_cancelled and "cancelled" in todo.tags) %}✓{% else %}{% if datalist_hack %}  {% else %} {% endif %}{% endif %}] +{% endmacro %} + + + +{% macro datalist_tasks(tasks, with_weight=false) %} + +{% for task in tasks %} + +{% endfor %} + +{% endmacro %}