Skip to content

Commit

Permalink
fix: remove off days banner
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Oct 18, 2024
1 parent dd4ca0f commit 5308e88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/web/common/includes/donate_banner.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
}

function DonationButton() {
setBannerCookie('off_donation_banner_2023_a', 1, 180);
setBannerCookie('off_donation_banner_2024_a', 1, 180);
bannerID.style.display = 'none';
}

if (getBannerCookie('off_donation_banner_2023_a') !== '') {
if (getBannerCookie('off_donation_banner_2024_a') !== '') {
bannerID.style.display = 'none';
} else {
bannerID.style.display = 'flex';
Expand Down
5 changes: 4 additions & 1 deletion templates/web/common/site_layout.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,15 @@
[% INCLUDE 'web/common/includes/offdays_banner.tt.html' %]
[% ELSIF 1 == 2 %]
[% INCLUDE 'web/common/includes/packagings_banner.tt.html' %]
[% ELSE %]
[% ELSIF 2 == 3 %]
[%# we keep the old code so that we can easily put back the donation banner %]
[% PROCESS 'web/common/includes/off_days_2024_banner.tt.html' %]
[% banner_off_days_2024_top %]
[% PROCESS 'web/common/includes/donate_banner.tt.html' %]
[% banner_main %]
[% ELSE %]
[% PROCESS 'web/common/includes/donate_banner.tt.html' %]
[% banner_main %]
[% END %]
[% END %]

Expand Down

0 comments on commit 5308e88

Please sign in to comment.