summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2015-03-06 02:01:53 -0800
committerczaks <marcin@6irc.net>2016-05-05 12:01:16 +0200
commitdd27026618ab200253ab6fcd6e58e247f8cc6711 (patch)
tree141dd07022896a649fbba186ca3f9587e899754d /templates
parente8b530a78369fffff024f1d26696605c3f1130c2 (diff)
Show stickies at top of catalog
Diffstat (limited to 'templates')
-rw-r--r--templates/themes/catalog/catalog.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html
index 2ca66089..1011fdaf 100644
--- a/templates/themes/catalog/catalog.html
+++ b/templates/themes/catalog/catalog.html
@@ -38,6 +38,8 @@
data-bump="{{ post.bump }}"
data-time="{{ post.time }}"
data-id="{{ post.id }}"
+ data-sticky="{% if post.sticky %}true{% else %}false{% endif %}"
+ data-locked="{% if post.locked %}true{% else %}false{% endif %}"
>
<div class="thread grid-li grid-size-small">
<a href="{{post.link}}">
@@ -49,7 +51,7 @@
id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject|e }}{% endif %}" data-name="{{ post.name|e }}" data-muhdifference="{{ post.muhdifference }}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}">
</a>
<div class="replies">
- <strong>R: {{ post.reply_count }} / I: {{ post.image_count }}</strong>
+ <strong>R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %}</strong>
{% if post.subject %}
<p class="intro">
<span class="subject">