From 11df024d5f24e8d7916f57c907975ebe27db617f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 23 Feb 2024 05:18:52 +0100 Subject: [PATCH] Fix. --- todo_templates/macros.html | 41 +++++++++++++++++++++++++++++++++++++ todo_templates/message.html | 8 ++++++++ 2 files changed, 49 insertions(+) create mode 100644 todo_templates/macros.html create mode 100644 todo_templates/message.html 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 %} diff --git a/todo_templates/message.html b/todo_templates/message.html new file mode 100644 index 0000000..7d07bfa --- /dev/null +++ b/todo_templates/message.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} + +{% block content %} +

+{{ message|e }} +

+{% endblock %} + -- 2.30.2