summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-12-31 09:58:18 -0500
committerluxagraf <sng@luxagraf.net>2023-12-31 09:58:18 -0500
commit18b5430a1eaa2fe161e0341dc435e680eaf6b3e2 (patch)
tree1675334058c6b6e2a5bd58e9d443985103ccb7e7
parent79ca97d3d750a78d62ed402fc8333f2d3e9f5b50 (diff)
gtd: added links to main note view
-rw-r--r--app/gtd/templates/gtd/note_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/gtd/templates/gtd/note_list.html b/app/gtd/templates/gtd/note_list.html
index b2c0478..f5a9c77 100644
--- a/app/gtd/templates/gtd/note_list.html
+++ b/app/gtd/templates/gtd/note_list.html
@@ -14,10 +14,10 @@
</select>
</div>
<div class="note-list">{% for object in object_list %}<article>
- <h2>{{object.title}}<span class="note-edit"><a href="{%url 'gtd:note-edit' object.pk%}">edit</a></span></h2>
+ <h2>{% if object.url %}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%} <span class="note-edit"><a href="{%url 'gtd:note-edit' object.pk%}">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.project %}<p class="small">For: <a href="{% url 'gtd:project-detail' object.project.id %}">{{object.project}}</a></p>{%endif%}
+ <p class="small">Status: {{object.get_status_display}}</p>
<p class="small"><a href="{% url 'gtd:note-delete' object.pk %}">delete</a></p>
</article>
{% endfor%}</div>