working version of the braindump, it generates task suggestions

This commit is contained in:
Joren de Graaf
2026-08-13 15:42:26 +02:00
parent 5da8c9f57e
commit d76f982a03
4 changed files with 162 additions and 19 deletions
+29 -4
View File
@@ -1,5 +1,30 @@
<div>
<h2>Ollama says:</h2>
{% if tasks is empty %}
<p>No tasks were suggested.</p>
{% else %}
<h2>Suggested tasks</h2>
<p>{{ response|nl2br }}</p>
</div>
{% for task in tasks %}
<article>
<h3>{{ task.title }}</h3>
<ul>
{% if task.description %}
<li><p>{{ task.description }}</p></li>
{% endif %}
<li>
<dt>Duration</dt>
<dd>{{ task.estimatedDurationMinutes }} minutes</dd>
<dt>Priority</dt>
<dd>{{ task.priority }}</dd>
<dt>Category</dt>
<dd>{{ task.category }}</dd>
<dt>Recurring</dt>
<dd>{{ task.isRecurring ? 'Yes' : 'No' }}</dd>
</li>
</article>
{% endfor %}
</ul>
{% endif %}