Update the table to a list of items and the header.

This commit is contained in:
2023-07-14 19:12:46 +03:00
parent 797b36be61
commit cddbb028bd
3 changed files with 19 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
<div class="p-2 border rounded-lg inline-flex gap-2 my-2 bg-gray-200">
{% if task.status == "TODO" %}
<p class="font-semibold text-green-500">
{% elif task.status == "DOING" %}
<p class="font-semibold text-yellow-500">
{% elif task.status == "DONE" or task.status == "CANCELED" %}
<p class="font-semibold text-gray-500">
{% endif %}
{{ task.status }}
</p>
<p class="font-semibold">{{ task.name }}</p>
<p>{{ task.description | truncatewords:10 }}</p>
</div>