From a7fbd57188018f419d8c2a8e9b0244a59df464cd Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:58:41 +1300 Subject: [PATCH] use smallest version of community thumbnail #333 --- app/templates/base.html | 2 +- app/templates/post/post_teaser/_article.html | 2 +- app/templates/post/post_teaser/_image.html | 2 +- app/templates/post/post_teaser/_link.html | 2 +- app/templates/post/post_teaser/_poll.html | 2 +- app/templates/post/post_teaser/_video.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 6f55245a..f9c90a95 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -30,7 +30,7 @@ {% if community.icon_id and not low_bandwidth and not collapsed -%} - + {% endif -%} c/{{ community.display_name() }} diff --git a/app/templates/post/post_teaser/_article.html b/app/templates/post/post_teaser/_article.html index ea1b2379..149dfa95 100644 --- a/app/templates/post/post_teaser/_article.html +++ b/app/templates/post/post_teaser/_article.html @@ -8,7 +8,7 @@ {% if post.sticky -%}{% endif -%} {% if show_post_community -%} - {% if post.community.icon_image() %}Community icon{% endif -%} + {% if post.community.icon_id and not low_bandwidth %}Community icon{% endif -%} c/{{ post.community.name }}{% endif -%} by {{ render_username(post.author) }} {% if post.body_html -%} diff --git a/app/templates/post/post_teaser/_image.html b/app/templates/post/post_teaser/_image.html index c5e49104..728f58c3 100644 --- a/app/templates/post/post_teaser/_image.html +++ b/app/templates/post/post_teaser/_image.html @@ -11,7 +11,7 @@ {% if post.sticky -%}{% endif -%} {% if show_post_community -%} - {% if post.community.icon_image() %}Community icon{% endif -%} + {% if post.community.icon_id and not low_bandwidth %}Community icon{% endif -%} c/{{ post.community.name }}{% endif -%} by {{ render_username(post.author) }} {% if post.image_id and not low_bandwidth -%} diff --git a/app/templates/post/post_teaser/_link.html b/app/templates/post/post_teaser/_link.html index 7ddcb86c..45ef98c6 100644 --- a/app/templates/post/post_teaser/_link.html +++ b/app/templates/post/post_teaser/_link.html @@ -14,7 +14,7 @@ {% if post.sticky -%}{% endif -%} {% if show_post_community -%} - {% if post.community.icon_image() %}Community icon{% endif -%} + {% if post.community.icon_id and not low_bandwidth %}Community icon{% endif -%} c/{{ post.community.name }}{% endif -%} by {{ render_username(post.author) }} {% if post.body_html -%} diff --git a/app/templates/post/post_teaser/_poll.html b/app/templates/post/post_teaser/_poll.html index 8158f0a7..bfb740ae 100644 --- a/app/templates/post/post_teaser/_poll.html +++ b/app/templates/post/post_teaser/_poll.html @@ -9,7 +9,7 @@ {% if post.sticky -%}{% endif -%} {% if show_post_community -%} - {% if post.community.icon_image() %}Community icon{% endif -%} + {% if post.community.icon_id and not low_bandwidth %}Community icon{% endif -%} c/{{ post.community.name }}{% endif -%} by {{ render_username(post.author) }} {% include "post/post_teaser/_utilities_bar.html" %} diff --git a/app/templates/post/post_teaser/_video.html b/app/templates/post/post_teaser/_video.html index 61836b04..a08f4326 100644 --- a/app/templates/post/post_teaser/_video.html +++ b/app/templates/post/post_teaser/_video.html @@ -16,7 +16,7 @@ {% if post.sticky -%}{% endif -%} {% if show_post_community -%} - {% if post.community.icon_image() %}Community icon{% endif -%} + {% if post.community.icon_id and not low_bandwidth %}Community icon{% endif -%} c/{{ post.community.name }}{% endif -%} by {{ render_username(post.author) }} {% if not low_bandwidth %}