summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-16 11:12:45 -0500
committerluxagraf <sng@luxagraf.net>2023-11-16 11:12:45 -0500
commit3dca2be414e482ae23303e0b52a0c5d9ce9950e8 (patch)
tree1217631d1df96b13e52c548e45e9de752d9c02d2 /app
parent78e20a68b5780b5aaaa61a7ddf5d9d8738c81c1a (diff)
gtd: added some links to delete from list view
Diffstat (limited to 'app')
-rw-r--r--app/gtd/templates/gtd/wirednote_list.html5
-rw-r--r--app/gtd/templates/gtd/wiredpost_detail.html1
2 files changed, 4 insertions, 2 deletions
diff --git a/app/gtd/templates/gtd/wirednote_list.html b/app/gtd/templates/gtd/wirednote_list.html
index 7b17617..73c93bb 100644
--- a/app/gtd/templates/gtd/wirednote_list.html
+++ b/app/gtd/templates/gtd/wirednote_list.html
@@ -11,8 +11,9 @@
<div class="note-list">{% for object in object_list %}<article>
<h2>{%if object.url%}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%}<span class="note-edit"><a href="{{object.get_absolute_url}}">edit</a></span></h2>
<p>{{object.body_markdown}}</p>
- <p class="small">For: <a href="/post/{{object.post.pk}}/notes">{{object.post}}</a></p>
- <p class="small">Status: <a href="/post/{{object.post.pk}}/notes">{{object.get_status_display}}</a></p>
+ {% if object.post%}<p class="small">For: <a href="{% url 'gtd:wiredpost-detail' object.post.id %}">{{object.post}}</a></p>{%endif%}
+ <p class="small">Status: <a href="{% url 'gtd:wirednote-edit' object.pk %}">{{object.get_status_display}}</a></p>
+ <p class="small"><a href="{% url 'gtd:wirednote-delete' object.pk %}">delete</a></p>
</article>
{% endfor%}</div>
</main>
diff --git a/app/gtd/templates/gtd/wiredpost_detail.html b/app/gtd/templates/gtd/wiredpost_detail.html
index 92ac269..f4dd272 100644
--- a/app/gtd/templates/gtd/wiredpost_detail.html
+++ b/app/gtd/templates/gtd/wiredpost_detail.html
@@ -13,6 +13,7 @@
<h2>{%if object.url%}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%}<span class="note-edit"><a href="{{object.get_absolute_url}}">edit</a></span></h2>
<p>{{object.body_markdown}}</p>
<p>Status: {% if object.status == 0 %}<span class="alert">{{object.get_status_display}}</span>{%else%}{{object.get_status_display}}{%endif%}</p>
+ <p class="small"><a href="{% url 'gtd:wirednote-delete' object.pk %}">delete</a></p>
</article>{%endfor%}
{% endfor%}</div>
</main>