diff --git a/stylesheets/style.css b/stylesheets/style.css index f5e58238..ac9281a5 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -314,7 +314,7 @@ div.post img.icon { padding: 0; } -div.post i.fa { +div.post i.fa, div.thread i.fa { margin: 0 4px; font-size: 16px; } diff --git a/templates/post/mod_attributes.html b/templates/post/mod_attributes.html new file mode 100644 index 00000000..0eb89747 --- /dev/null +++ b/templates/post/mod_attributes.html @@ -0,0 +1,28 @@ +{% if post.sticky %} + {% if config.font_awesome %} + + {% else %} + Sticky + {% endif %} +{% endif %} +{% if post.locked %} + {% if config.font_awesome %} + + {% else %} + Locked + {% endif %} +{% endif %} +{% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} + {% if config.font_awesome %} + + {% else %} + Bumplocked + {% endif %} +{% endif %} +{% if post.cycle %} + {% if config.font_awesome %} + + {% else %} + Cyclical + {% endif %} +{% endif %} diff --git a/templates/post_thread.html b/templates/post_thread.html index 77462bd5..ff693e22 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -17,34 +17,7 @@ {% include 'post/poster_id.html' %}  No. {{ post.id }} - {% if post.sticky %} - {% if config.font_awesome %} - - {% else %} - Sticky - {% endif %} - {% endif %} - {% if post.locked %} - {% if config.font_awesome %} - - {% else %} - Locked - {% endif %} - {% endif %} - {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} - {% if config.font_awesome %} - - {% else %} - Bumplocked - {% endif %} - {% endif %} - {% if post.cycle %} - {% if config.font_awesome %} - - {% else %} - Cyclical - {% endif %} - {% endif %} + {% include 'post/mod_attributes.html' %} {% if index %} [{% trans %}Reply{% endtrans %}] {% endif %} diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 7060c4cd..903bd619 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -44,6 +44,7 @@ data-id="{{ post.id }}" data-sticky="{% if post.sticky %}true{% else %}false{% endif %}" data-locked="{% if post.locked %}true{% else %}false{% endif %}" + data-cycle="{% if post.cycle %}true{% else %}false{% endif %}" >
@@ -55,7 +56,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')}}">
- R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %} + R: {{ post.reply_count }} / I: {{ post.image_count }} / P: {{ (loop.index // config.threads_per_page) + 1 }} {% include 'post/mod_attributes.html' %} {% if post.subject %}