From 17eb4953d83b90622625e4d573fa10bc42991c5b Mon Sep 17 00:00:00 2001 From: JollyDevelopment Date: Tue, 14 Jan 2025 08:52:24 -0500 Subject: [PATCH] view-transition testing for post teaser to full post --- app/templates/post/_post_full.html | 6 +++--- app/templates/post/post_edit.html | 2 +- app/templates/post/post_teaser/_image.html | 2 +- app/templates/post/post_teaser/_title.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index bb343f60..b6536972 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -1,7 +1,7 @@
{% include "post/_breadcrumb_nav.html" %} -

{{ post.title }} +

{{ post.title }} {% if post.nsfw -%}nsfw{% endif -%} {% if post.nsfl -%}nsfl{% endif -%}

@@ -21,7 +21,7 @@ {% if post.edited_at -%} edited

{% if post.type == POST_TYPE_IMAGE -%} -
+
{% if post.image_id -%} {% if low_bandwidth -%}
{% endif -%} {% elif post.type == POST_TYPE_IMAGE -%} -
+
{{ post.image.alt_text if post.image.alt_text else post.title }}
diff --git a/app/templates/post/post_edit.html b/app/templates/post/post_edit.html index e3ebaad6..976cbe8b 100644 --- a/app/templates/post/post_edit.html +++ b/app/templates/post/post_edit.html @@ -19,7 +19,7 @@
{% elif post_type == POST_TYPE_IMAGE %} {% if post.image_id -%} -
+
{% if low_bandwidth -%} {% include "post/post_teaser/_title.html" %} {% if post.image_id and not low_bandwidth -%} -