From 964a58105b99f819581d0f2014099c7e8363e8e2 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 19 Oct 2023 16:29:15 +0200 Subject: [PATCH] refactor: replace external scrolltotop solution with own Closes: #365 --- apis_core/apis_metainfo/templates/base.html | 8 ++-- .../core/templates/partials/backtotopbtn.html | 41 +++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 apis_core/core/templates/partials/backtotopbtn.html diff --git a/apis_core/apis_metainfo/templates/base.html b/apis_core/apis_metainfo/templates/base.html index 0092b5b14..4867252a2 100644 --- a/apis_core/apis_metainfo/templates/base.html +++ b/apis_core/apis_metainfo/templates/base.html @@ -52,9 +52,6 @@ {% if PROJECT_CSS %}{% endif %} - - {% block scriptHeader %}{% endblock %} @@ -250,7 +247,6 @@ {% include "partials/bootstrap4_js.html" %} - {% endblock %} {% block scripts2 %} @@ -269,5 +265,9 @@ {% endblock modal %} + {% block backtotopbtn %} + {% include "partials/backtotopbtn.html" %} + {% endblock backtotopbtn %} + diff --git a/apis_core/core/templates/partials/backtotopbtn.html b/apis_core/core/templates/partials/backtotopbtn.html new file mode 100644 index 000000000..5718b2466 --- /dev/null +++ b/apis_core/core/templates/partials/backtotopbtn.html @@ -0,0 +1,41 @@ + + +