about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-14T15·55+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-14T15·55+0200
commitc6995fcab3e8f2d2db7d4c7647811f0dd038ab2b (patch)
tree00beb1879ad097487ccb07b5be40cdfbfbe5b06e /templates
parentd1c45159b9bb23553768b06ce7ad97ec38e8b845 (diff)
feat(templates): Highlight stickied threads in index
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 5fc0d9a77c52..f499f4047e3b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -25,10 +25,10 @@
         <div class="col-12">
           <div class="list-group">
             {% for thread in threads -%}
-            <a href="/thread/{{ thread.id }}" class="list-group-item list-group-item-action flex-column align-items-start">
+            <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>
-                <small class="text-muted">{{ thread.posted }}</small>
+                <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>
             </a>