From 58a5645cdf16caeae77d8a24ed81da2553a06bb1 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 21 Jan 2021 17:10:15 -0500 Subject: [PATCH] Use `{% empty %}` instead of if/else in index --- tasks/templates/tasks/index.djhtml | 32 +++++++++++++----------------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/tasks/templates/tasks/index.djhtml b/tasks/templates/tasks/index.djhtml index c66d0bd..28cf054 100644 --- a/tasks/templates/tasks/index.djhtml +++ b/tasks/templates/tasks/index.djhtml @@ -4,24 +4,20 @@ {% block content %}

Tools

- {% if tools %} - - {% else %} -

No tools are available.

- {% endif %} +

Tasks

- {% if tasks %} - - {% else %} -

No tasks are available.

- {% endif %} + {% endblock %}