From 52d2c7a7b17f2e7c03d6dcd3a526b12b7c10970a Mon Sep 17 00:00:00 2001 From: zodywoolsey Date: Mon, 14 Apr 2025 20:54:26 -0600 Subject: [PATCH] added fields for clients to use for alternate links for android and ios along with new SVGs for both --- CONTENT.md | 3 + static/assets/stores/download_for_android.svg | 1327 +++++++++++++++++ static/assets/stores/download_for_ios.svg | 76 + templates/macros/clients.html | 16 +- 4 files changed, 1418 insertions(+), 4 deletions(-) create mode 100644 static/assets/stores/download_for_android.svg create mode 100644 static/assets/stores/download_for_ios.svg diff --git a/CONTENT.md b/CONTENT.md index 1be8d68b98..e6d82f02b9 100644 --- a/CONTENT.md +++ b/CONTENT.md @@ -127,8 +127,11 @@ windows_installer = "https://example.com/download" macos_installer = "https://example.com/download" google_play_store.app_id = "com.example.app" f_droid.app_id = "com.example.app" +other_android_link = "https://example.com/download.apk" apple_app_store = { app_id = "id1234567890", org = "example" } +other_ios_link = "https://example.com/download" flathub.app_id = "com.example.app" +other_linux_link = "https://example.com/download" webapp = "https://chat.example.com" +++ diff --git a/static/assets/stores/download_for_android.svg b/static/assets/stores/download_for_android.svg new file mode 100644 index 0000000000..81346217b6 --- /dev/null +++ b/static/assets/stores/download_for_android.svg @@ -0,0 +1,1327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android + Download for + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/assets/stores/download_for_ios.svg b/static/assets/stores/download_for_ios.svg new file mode 100644 index 0000000000..429b0ed3d5 --- /dev/null +++ b/static/assets/stores/download_for_ios.svg @@ -0,0 +1,76 @@ + + + + Download_on_the_App_Store_Badge_US-UK_RGB_blk_4SVG_092917 + + + + + + + + + + + + + + + + + iOS + Download for + diff --git a/templates/macros/clients.html b/templates/macros/clients.html index 8e74f3ad58..54edf544b6 100644 --- a/templates/macros/clients.html +++ b/templates/macros/clients.html @@ -1,8 +1,8 @@ {% macro classes(client) %} -{% if client.packages.apple_app_store.app_id and client.packages.apple_app_store.org %} +{% if client.packages.apple_app_store.app_id and client.packages.apple_app_store.org or client.packages.other_ios_link %} platform-ios {% endif %} -{% if client.packages.google_play_store.app_id %} +{% if client.packages.google_play_store.app_id or client.packages.other_android_link %} platform-android {% endif %} {% if client.packages.flathub.app_id %} @@ -61,6 +61,10 @@ {% if packages.webapp %} Use in your browser {% endif %} +{% if packages.other_ios_link %} +Download for iOS +{% endif %} {% if packages.apple_app_store %} Download on the App Store @@ -73,11 +77,15 @@ Download on Google Play {% endif %} +{% if packages.other_android_link %} +Download for Android +{% endif %} {% endmacro %} {% macro platforms(packages) %} -{% if packages.apple_app_store %}
iOS
{% endif %} -{% if packages.google_play_store or packages.f_droid %}
Android
{% endif %} +{% if packages.apple_app_store or packages.other_ios_link %}
iOS
{% endif %} +{% if packages.google_play_store or packages.f_droid or packages.other_android_link%}
Android
{% endif %} {% if packages.windows_installer %}
Windows
{% endif %} {% if packages.macos_installer %}
macOS
{% endif %} {% if packages.flathub or packages.other_linux_link %}
Linux
{% endif %}