From 8714144b32475dffaf8fc631c1b798c7f269eced Mon Sep 17 00:00:00 2001 From: freamon Date: Sun, 12 Jan 2025 12:09:16 +0000 Subject: [PATCH] HTMX drop-down for available cross posts --- app/templates/post/_post_full.html | 18 ++++++++++--- app/templates/post/post_cross_posts.html | 32 ++++++------------------ 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index 188a82e1..bb343f60 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -170,9 +170,21 @@ {% if post.cross_posts -%}
- - {{ len(post.cross_posts) }} +
{% endif -%}
diff --git a/app/templates/post/post_cross_posts.html b/app/templates/post/post_cross_posts.html index 52acd590..131bdf9c 100644 --- a/app/templates/post/post_cross_posts.html +++ b/app/templates/post/post_cross_posts.html @@ -1,24 +1,8 @@ -{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} - {% extends 'themes/' + theme() + '/base.html' %} -{% else %} - {% extends "base.html" %} -{% endif %} -{% from 'bootstrap/form.html' import render_form %} - -{% block app_content %} -
- -
-{% endblock %} +{% for cross_post in cross_posts %} + +{% endfor %}