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

@ -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">