feat(templates): Add indicators for closed threads

This commit is contained in:
Vincent Ambo 2018-05-25 18:46:32 +02:00 committed by Vincent Ambo
parent 871093a973
commit 1ec31e8c45
2 changed files with 15 additions and 1 deletions

View file

@ -78,6 +78,11 @@
<!-- section for writing a response on the same page -->
<section id="post-reply" class="section--center mdl-grid mdl-grid--no-spacing reply-box">
<div class="mdl-card mdl-shadow--2dp mdl-cell--12-col">
{% if closed %}
<div class="mdl-card__supporting-text">
This thread is <b>closed</b> and can no longer be responded to.
</div>
{% else %}
<form id="reply-form" action="/thread/reply" method="post">
<input type="hidden" id="thread_id" name="thread_id" value="{{ id }}">
@ -91,6 +96,7 @@
</button>
</div>
</form>
{% endif %}
</div>
</section>
</main>