diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/gtd/templates/gtd/note_list.html | 6 |
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> |