From 6b9da1b4fe6a40c6c1d08a0d3d5446baa6b6dbe0 Mon Sep 17 00:00:00 2001
From: Ondrej Rehounek <ondra.rehounek@seznam.cz>
Date: Sun, 20 Feb 2022 19:23:50 +0100
Subject: [PATCH] district and region: Fix link in header btn

---
 district/templates/district/base.html | 2 +-
 region/templates/region/base.html     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/district/templates/district/base.html b/district/templates/district/base.html
index e569a480..65e5ae00 100644
--- a/district/templates/district/base.html
+++ b/district/templates/district/base.html
@@ -141,7 +141,7 @@
           </div>
 
           <div v-if="show || isLgScreenSize" class="navbar__actions navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0">
-            <a href="https://dary.pirati.cz/projekty-kampane/zlk-potrebuje-peci/" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
+            <a href="{{ page.root_page.donation_page|default:"https://dary.pirati.cz" }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
               <div class="btn__body-wrap">
                 <div class="btn__body ">Přispěj</div>
                 <div class="btn__icon ">
diff --git a/region/templates/region/base.html b/region/templates/region/base.html
index e569a480..65e5ae00 100644
--- a/region/templates/region/base.html
+++ b/region/templates/region/base.html
@@ -141,7 +141,7 @@
           </div>
 
           <div v-if="show || isLgScreenSize" class="navbar__actions navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0">
-            <a href="https://dary.pirati.cz/projekty-kampane/zlk-potrebuje-peci/" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
+            <a href="{{ page.root_page.donation_page|default:"https://dary.pirati.cz" }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
               <div class="btn__body-wrap">
                 <div class="btn__body ">Přispěj</div>
                 <div class="btn__icon ">
-- 
GitLab