diff options
Diffstat (limited to 'app/posts/templates')
-rw-r--r-- | app/posts/templates/posts/note_form.html | 2 | ||||
-rw-r--r-- | app/posts/templates/posts/post_detail.html | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/posts/templates/posts/note_form.html b/app/posts/templates/posts/note_form.html index 15797f2..10d81ac 100644 --- a/app/posts/templates/posts/note_form.html +++ b/app/posts/templates/posts/note_form.html @@ -5,7 +5,7 @@ {% for field in form %} <fieldset> - {%if field.name == "post"%}<span class="selector">{{field.label_tag}}</span>{%else%}{{field.label_tag}}{%endif%} + {%if field.name == "post" or field.name == "status" %}<span class="selector">{{field.label_tag}}</span>{%else%}{{field.label_tag}}{%endif%} {%if field.name == "body_markdown"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endif%} </fieldset> <small class="alert">{% if field.errors %}{{field.errors}}{% endif %}</small> diff --git a/app/posts/templates/posts/post_detail.html b/app/posts/templates/posts/post_detail.html index 8117fe6..193cfa5 100644 --- a/app/posts/templates/posts/post_detail.html +++ b/app/posts/templates/posts/post_detail.html @@ -8,7 +8,8 @@ </div> <div class="note-list">{% for object in object.note_set.all%}<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></article> + <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></article> {% endfor%}</div> </main> {% endblock %} |