status colors

This commit is contained in:
Flatlogic Bot 2025-11-23 15:27:36 +00:00
parent 8c0b76cf53
commit 4d4fbc96ba
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

View File

@ -64,7 +64,7 @@
</thead>
<tbody>
{% for item in todo_list %}
<tr>
<tr class="{% if item.status == 'in_progress' %}table-info{% elif item.status == 'done' %}table-success{% endif %}">
<td>{{ item.title }}</td>
<td>{{ item.description|default:"" }}</td>
<td>
@ -74,7 +74,7 @@
{% endfor %}
{% endif %}
</td>
<td><span class="badge status-{{ item.status }}">{{ item.get_status_display }}</span></td>
<td><span class="badge {% if item.status == 'in_progress' %}bg-info text-dark{% elif item.status == 'done' %}bg-success{% else %}bg-light text-dark{% endif %}">{{ item.get_status_display }}</span></td>
<td>{{ item.created_at|date:"M d, Y" }}</td>
<td>{{ item.deadline|date:"M d, Y"|default:"" }}</td>
<td>
@ -86,7 +86,7 @@
</tr>
{% empty %}
<tr>
<td colspan="5" class="text-center text-muted py-4">No tasks yet. Add one above!</td>
<td colspan="7" class="text-center text-muted py-4">No tasks yet. Add one above!</td>
</tr>
{% endfor %}
</tbody>