feat(templates): Add 'sticky' badge to sticky threads

This commit is contained in:
Vincent Ambo 2018-04-14 22:30:03 +02:00
parent 06f7f23bab
commit 8057b8849e

View file

@ -28,7 +28,7 @@
{% for thread in threads -%} {% for thread in threads -%}
<a href="/thread/{{ thread.id }}" class="list-group-item list-group-item-action flex-column align-items-start {% if thread.sticky %} bg-secondary text-white {% endif %}"> <a href="/thread/{{ thread.id }}" class="list-group-item list-group-item-action flex-column align-items-start {% if thread.sticky %} bg-secondary text-white {% endif %}">
<div class="d-flex w-100 justify-content-between"> <div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">{{ thread.title }}</h5> <h5 class="mb-1">{% if thread.sticky %}<span class="badge badge-light">Sticky</span> {% endif %}{{ thread.title }}</h5>
<small class="{%if thread.sticky %}text-white{% else %}text-muted{% endif %}">{{ thread.posted }}</small> <small class="{%if thread.sticky %}text-white{% else %}text-muted{% endif %}">{{ thread.posted }}</small>
</div> </div>
<p class="mb-1">Created by {{ thread.author_name }}</p> <p class="mb-1">Created by {{ thread.author_name }}</p>