From: Christian Heller Date: Thu, 30 May 2024 08:06:59 +0000 (+0200) Subject: Minor template fixes. X-Git-Url: https://plomlompom.com/repos/test?a=commitdiff_plain;h=6b9970ff864e0e63527213fea5c0bed40ba877a7;p=plomtask Minor template fixes. --- diff --git a/plomtask/http.py b/plomtask/http.py index 537f21f..944f79a 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -175,9 +175,9 @@ class TaskHandler(BaseHTTPRequestHandler): todos.sort(key=lambda t: t.is_done) elif sort_by == '-doneness': todos.sort(key=lambda t: t.is_done, reverse=True) - elif sort_by == 'process': + elif sort_by == 'title': todos.sort(key=lambda t: t.title_then) - elif sort_by == '-process': + elif sort_by == '-title': todos.sort(key=lambda t: t.title_then, reverse=True) elif sort_by == 'comment': todos.sort(key=lambda t: t.comment) diff --git a/templates/process.html b/templates/process.html index 8944c95..9df8b45 100644 --- a/templates/process.html +++ b/templates/process.html @@ -22,7 +22,7 @@ {% if step_node.is_explicit %} -add sub-step: +add sub-step: {% endif %} diff --git a/templates/todo.html b/templates/todo.html index 41d894b..80eb5c7 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -69,7 +69,7 @@ children -{{ macros.simple_checkbox_table("adopt", todo.children, "adopt", "todo_candidates", "adopt", true) }} +{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }} diff --git a/templates/todos.html b/templates/todos.html index 6cbf0bc..6b733e0 100644 --- a/templates/todos.html +++ b/templates/todos.html @@ -19,14 +19,14 @@ in comment done date -process +title comment {% for todo in todos %} [{% if todo.is_done %}x{% else %} {% endif %}] {{todo.date}} -{{todo.title_then}} +{{todo.title_then}} {{todo.comment}} {% endfor %}