From d2ff139c51cc2ab2925459f62abcaf01f2dc4067 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 20 May 2021 20:12:52 -0400 Subject: [PATCH] Add display of subscriptions in taskDetail for the current user --- tasks/templates/tasks/taskDetail.djhtml | 32 +++++++++++++++++++++++++ tasks/views.py | 2 ++ templates/base.djhtml | 1 + 3 files changed, 35 insertions(+) diff --git a/tasks/templates/tasks/taskDetail.djhtml b/tasks/templates/tasks/taskDetail.djhtml index 23ee728..46e5022 100644 --- a/tasks/templates/tasks/taskDetail.djhtml +++ b/tasks/templates/tasks/taskDetail.djhtml @@ -7,6 +7,38 @@ {% block admin_link %}{% url 'admin:tasks_task_change' task.id %}{% endblock %} +{% block nav_extra %} + {% if user.is_authenticated %} + {% if task_subs or tool_subs %} + + + + + {% else %} + 🔕 + {% endif %} + {% endif %} +{% endblock %} + {% block content %}