From 5da08a1928a6f017da67f4eb6fa577658b13f8c5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 27 Jan 2024 15:56:17 -0600 Subject: gtd: added jump list to wired post detail pages --- app/gtd/templates/gtd/wiredpost_detail.html | 9 +++++++-- app/gtd/views.py | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'app/gtd') diff --git a/app/gtd/templates/gtd/wiredpost_detail.html b/app/gtd/templates/gtd/wiredpost_detail.html index f4dd272..aa76c1b 100644 --- a/app/gtd/templates/gtd/wiredpost_detail.html +++ b/app/gtd/templates/gtd/wiredpost_detail.html @@ -5,6 +5,10 @@

{{object.title}}

Last Updated: {{object.date_last_pub}}

Needs Update: {% if object.needs_update %} Yes {% if object.days_overdue %}{{object.days_overdue}} days overdue{%endif %}{%endif%}

+ {% regroup notes by get_status_display as newlist %}
{% for obj in newlist %}
{{obj.grouper}}
@@ -18,5 +22,6 @@ {% endfor%}
{% endblock %} - {% block js %} - {% endblock%} +{% block js %} + +{% endblock%} diff --git a/app/gtd/views.py b/app/gtd/views.py index 985fdf0..22b1190 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -275,6 +275,7 @@ class WiredPostNotesView(DetailView): def get_context_data(self, **kwargs): context = super(WiredPostNotesView, self).get_context_data(**kwargs) context['notes'] = self.get_object().wirednote_set.all().order_by("status") + context['posts'] = WiredPost.objects.all() return context -- cgit v1.2.3-70-g09d2