about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-14T20·30+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-14T20·33+0200
commit8057b8849e1f4e53d0731c75da16bfdbc32fc602 (patch)
tree33b7109ce177f2973ecdd9a8d0bcc8b40923b296
parent06f7f23bab2113ba80f8fa863c8281a585ef822e (diff)
feat(templates): Add 'sticky' badge to sticky threads
-rw-r--r--templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 263c8828a0..d4daa216c2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -28,7 +28,7 @@
             {% 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 %}">
               <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>
               </div>
               <p class="mb-1">Created by {{ thread.author_name }}</p>