diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-19 14:02:21 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-19 14:02:21 -0500 |
commit | 46ecd030e8d2b68f155c6f8d2d4ad653500391c6 (patch) | |
tree | d665fdd879c4e2554ad086293cf05fd2af4d0ffa | |
parent | 258a1fd1b46de9c81f75929d8401c7e8132157c6 (diff) |
posts: cleaned up notes page
-rw-r--r-- | app/posts/templates/posts/post_detail.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/posts/templates/posts/post_detail.html b/app/posts/templates/posts/post_detail.html index c616361..32d5ec4 100644 --- a/app/posts/templates/posts/post_detail.html +++ b/app/posts/templates/posts/post_detail.html @@ -1,11 +1,16 @@ {% extends 'base.html' %} {% block primary %} +<main class="post-detail"> + <div class="post-header"> <h1><a href="{{object.url}}">{{object.title}}</a></h1> - <p>Last Updated: {{object.date_last_pub}}{% if object.needs_update %}<img src="/static/admin/img/icon-yes.svg" alt="True">{%else%}<span class="hide">0</span><img src="/static/admin/img/icon-no.svg" alt="False">{%endif%} overdue: {{object.days_overdue}}</p> +<p>Last Updated: {{object.date_last_pub}}</p> +<p>Needs Update: {% if object.needs_update %} Yes {% if object.days_overdue %}{{object.days_overdue}} days overdue{%endif %}{%endif%}</p> + </div> <div class="note-list">{% for object in object.note_set.all%} <h2><a href="{{object.url}}">{{object.title}}</a></h2> <p>{{object.body_markdown}}</p> -</div>{% endfor%} +{% endfor%}</div> +</main> {% endblock %} {% block js %} {% endblock%} |