Skip to content

Commit 71be1f2

Browse files
committed
Add priority display in task list
1 parent 0f4deaf commit 71be1f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ <h1>Endless Task List App using Flask</h1>
5555
{{ task.name }}<br />
5656
Due: {{ task.due_date }}
5757
</li>
58-
{% if not task.completed %}<!--show complete button if task is not completed-->
58+
Priority: {% if task.priority == 1 %} Low {% elif task.priority == 2 %}
59+
Medium {% elif task.priority == 3 %} High {% endif %} {% if not
60+
task.completed %}<!--show complete button if task is not completed-->
5961
<a href="/complete_task/{{ task.id }}">Complete</a>
6062
{% endif %}
6163
<a href="/delete_task/{{ task.id }}">Delete</a>

0 commit comments

Comments
 (0)