diff --git a/CONTENT.md b/CONTENT.md index 48e779f63..f19daad41 100644 --- a/CONTENT.md +++ b/CONTENT.md @@ -160,8 +160,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 000000000..81346217b --- /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 000000000..429b0ed3d --- /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 8e74f3ad5..54edf544b 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 @@ licence-{{ client.licence | slugify }} {% 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 @@ licence-{{ client.licence | slugify }} 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 %}