From 5780e9b05ec21946d13c39f662125eb5e57c5598 Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Mon, 9 Dec 2024 13:47:54 +0100 Subject: [PATCH] separate out breadcrumb_nav --- app/templates/post/_breadcrumb_nav.html | 8 ++++++++ app/templates/post/_post_full.html | 9 +-------- app/templates/post/post_cross_post.html | 10 +--------- 3 files changed, 10 insertions(+), 17 deletions(-) create mode 100644 app/templates/post/_breadcrumb_nav.html diff --git a/app/templates/post/_breadcrumb_nav.html b/app/templates/post/_breadcrumb_nav.html new file mode 100644 index 00000000..fe2153bd --- /dev/null +++ b/app/templates/post/_breadcrumb_nav.html @@ -0,0 +1,8 @@ + diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index 2b2eb26b..931f8eed 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -1,13 +1,6 @@
- + {% include "post/_breadcrumb_nav.html" %}

{{ post.title }} {% if current_user.is_authenticated -%} {% include 'post/_post_notification_toggle.html' -%} diff --git a/app/templates/post/post_cross_post.html b/app/templates/post/post_cross_post.html index 839a23b6..550589c3 100644 --- a/app/templates/post/post_cross_post.html +++ b/app/templates/post/post_cross_post.html @@ -8,15 +8,7 @@ {% block app_content %}
- + {% include "post/_breadcrumb_nav.html" %}

{{ _('Cross-post %(post_name)s', post_name=post.title) }}

{{ render_form(form) }}