about summary refs log tree commit diff
path: root/templates/index.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/index.html
parent871093a973d265026581c53b760f9f021b192f54 (diff)
feat(templates): Add indicators for closed threads
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 7151c3390c54..20932b27622b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -46,7 +46,15 @@
                   <a class="thread-link mdl-color-text--grey-800" href="/thread/{{ thread.id }}">
                     <span class="mdl-list__item-primary-content {% if loop.index < threads.len() %}thread-divider{% endif %}">
                       <button class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored mdl-list__item-icon">
-                        <i class="material-icons">{% if thread.sticky %}announcement{% else %}library_books{% endif %}</i>
+                        <i class="material-icons">
+                          {% if thread.sticky %}
+                            announcement
+                          {% else if thread.closed %}
+                            lock
+                          {% else %}
+                            library_books
+                          {% endif %}
+                        </i>
                       </button>
                       <span class="thread-title">{{ thread.title }}<span class="thread-author"> by {{ thread.author_name }}</span></span>
                       <span class="mdl-list__item-text-body">