From 71074e6f1bc520012675d0943945d598b938333e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 20 May 2021 18:42:36 -0400 Subject: [PATCH] Make admin links link to current task or tool --- tasks/templates/tasks/taskDetail.djhtml | 2 ++ tasks/templates/tasks/toolDetail.djhtml | 2 ++ templates/base.djhtml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/templates/tasks/taskDetail.djhtml b/tasks/templates/tasks/taskDetail.djhtml index fd76042..23ee728 100644 --- a/tasks/templates/tasks/taskDetail.djhtml +++ b/tasks/templates/tasks/taskDetail.djhtml @@ -5,6 +5,8 @@ {% block title %} {{ tool.name }} - {{ task.name }} | {{ block.super }} {% endblock %} +{% block admin_link %}{% url 'admin:tasks_task_change' task.id %}{% endblock %} + {% block content %}