From a2df54cb85da49038828cc7fe71c47cfc89b8180 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:01:32 +1300 Subject: [PATCH] masonry tile for image communities --- app/templates/post/_post_teaser_masonry.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/templates/post/_post_teaser_masonry.html b/app/templates/post/_post_teaser_masonry.html index c07fdc15..3fe617ab 100644 --- a/app/templates/post/_post_teaser_masonry.html +++ b/app/templates/post/_post_teaser_masonry.html @@ -12,8 +12,16 @@ {% endif %}
{% if post.type == POST_TYPE_LINK %} - {{ post.image.alt_text if post.image.alt_text else '' }} + {% if post.image.thumbnail_url() %} + {{ post.image.alt_text if post.image.alt_text else '' }} + {% elif post.image.source_url %} + {{ post.title }} + {% else %} + {{ post.title }} + {% endif %} {% elif post.type == POST_TYPE_IMAGE %} {{ post.image.alt_text if post.image.alt_text else '' }}