From 4358882105bed245b8f7263f10fa0434c0568a05 Mon Sep 17 00:00:00 2001
From: rubenwardy
Date: Sat, 16 Dec 2023 00:57:13 +0000
Subject: [PATCH] Fix easymde assets being included on every page
---
app/templates/admin/send_bulk_email.html | 4 +++-
app/templates/admin/send_email.html | 4 +++-
app/templates/base.html | 3 ---
app/templates/collections/create_edit.html | 2 ++
app/templates/macros/forms.html | 6 ++++++
app/templates/packages/create_edit.html | 3 ++-
app/templates/packages/review_create_edit.html | 5 +++++
app/templates/threads/edit_reply.html | 5 +++++
app/templates/threads/new.html | 5 +++++
app/templates/threads/view.html | 2 ++
10 files changed, 33 insertions(+), 6 deletions(-)
diff --git a/app/templates/admin/send_bulk_email.html b/app/templates/admin/send_bulk_email.html
index 20e98ae0..57dfbedc 100644
--- a/app/templates/admin/send_bulk_email.html
+++ b/app/templates/admin/send_bulk_email.html
@@ -12,7 +12,7 @@
This will email all users with email addresses.
-{% from "macros/forms.html" import render_field, render_submit_field %}
+{% from "macros/forms.html" import render_field, render_submit_field, easymde_scripts %}
+{{ easymde_scripts() }}
+
{% endblock %}
diff --git a/app/templates/admin/send_email.html b/app/templates/admin/send_email.html
index 54dd7f94..e64120ac 100644
--- a/app/templates/admin/send_email.html
+++ b/app/templates/admin/send_email.html
@@ -7,7 +7,7 @@
{% block content %}
{{ self.title() }}
-{% from "macros/forms.html" import render_field, render_submit_field %}
+{% from "macros/forms.html" import render_field, render_submit_field, easymde_scripts %}
+{{ easymde_scripts() }}
+
{% endblock %}
diff --git a/app/templates/base.html b/app/templates/base.html
index 17eee39d..19aa989c 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -284,10 +284,7 @@
-
-
-
{% block scriptextra %}{% endblock %}