From e119e2295c75c399710c2257127584c9cc57c4ab Mon Sep 17 00:00:00 2001 From: Alexis Mercier des Rochettes Date: Sat, 1 Nov 2025 17:21:53 +0100 Subject: [PATCH] apps: add preorder badges * add appstore_badge_fr_preorder.svg static asset * add playstore_badge_fr_preorder.svg static asset * now displays preorder badges instead of download before 01 feb 2026 (estimated availability date) --- .../static/img/appstore_badge_fr_preorder.svg | 220 ++++++++++++++++++ .../img/playstore_badge_fr_preorder.svg | 66 ++++++ note_kfet/templates/registration/login.html | 6 +- 3 files changed, 290 insertions(+), 2 deletions(-) create mode 100644 note_kfet/static/img/appstore_badge_fr_preorder.svg create mode 100644 note_kfet/static/img/playstore_badge_fr_preorder.svg diff --git a/note_kfet/static/img/appstore_badge_fr_preorder.svg b/note_kfet/static/img/appstore_badge_fr_preorder.svg new file mode 100644 index 00000000..c5f3d0e6 --- /dev/null +++ b/note_kfet/static/img/appstore_badge_fr_preorder.svg @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/note_kfet/static/img/playstore_badge_fr_preorder.svg b/note_kfet/static/img/playstore_badge_fr_preorder.svg new file mode 100644 index 00000000..558a7f66 --- /dev/null +++ b/note_kfet/static/img/playstore_badge_fr_preorder.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/note_kfet/templates/registration/login.html b/note_kfet/templates/registration/login.html index af2a3f5b..6523f529 100644 --- a/note_kfet/templates/registration/login.html +++ b/note_kfet/templates/registration/login.html @@ -41,15 +41,17 @@ SPDX-License-Identifier: GPL-2.0-or-later
+ {% now "Ymd" as current_date_str %} + {% if display_appstore_badge %} - {% trans 'Download on the AppStore' %} {% endif %} {% if display_playstore_badge %} - {% trans 'Get it on Google Play' %} {% endif %}