about summary refs log tree commit diff
path: root/templates/thread.html
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-05-25T16·46+0200
committerVincent Ambo <github@tazj.in>2018-05-27T13·00+0200
commit1ec31e8c45b8787bfe6606d2733982a8ea678714 (patch)
tree74d077f12a26a46213fbaecdf88b41479f2c8a1b /templates/thread.html
parent871093a973d265026581c53b760f9f021b192f54 (diff)
feat(templates): Add indicators for closed threads
Diffstat (limited to 'templates/thread.html')
-rw-r--r--templates/thread.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/thread.html b/templates/thread.html
index 28ccd79d252c..295cf8fcdc1d 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -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>