mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
corporate: Update Android APK note.
Updates APK fine print on /apps for Android to link to both the Flutter app and legacy React Native app. Part of #34748.
This commit is contained in:
committed by
Tim Abbott
parent
ff04cafc40
commit
59a55e6d88
@@ -30,7 +30,7 @@
|
||||
<a class="download-from-google-play-store" hidden href=""><img src="{{ static('images/store-badges/google-play-badge.png') }}" alt=""/></a>
|
||||
<a class="download-from-apple-app-store" hidden href=""><img src="{{ static('images/store-badges/app-store-badge.svg') }}" alt=""/></a>
|
||||
<span id="download-from-microsoft-store" hidden>or <a href="https://apps.microsoft.com/store/detail/XP8HN41S4PLGZ3">download from the Microsoft Store</a></span>
|
||||
<span id="download-android-apk" hidden>or <a href="https://github.com/zulip/zulip-mobile/releases/latest">manually download APK</a></span>
|
||||
<span id="download-android-apk" hidden>or manually download APK for the <a class="android-apk-current" href="">current</a> or <a class="android-apk-legacy" href="">legacy</a> app</span>
|
||||
<span id="download-mac-intel" hidden>or <a href="">download <strong>Intel</strong> processor build <i>(some older Macs)</i></a></span>
|
||||
<p class="download-instructions"></p>
|
||||
</div>
|
||||
|
@@ -28,6 +28,7 @@ type VersionInfo = {
|
||||
alt: "Android";
|
||||
download_link: string;
|
||||
play_store_link: string;
|
||||
legacy_download_link: string;
|
||||
}
|
||||
| {
|
||||
alt: "iOS";
|
||||
@@ -85,7 +86,8 @@ const apps_events = function (): void {
|
||||
"Zulip's native Android app makes it easy to keep up while on the go, with fully customizable <a class='apps-page-link' href='/help/mobile-notifications'>mobile notifications</a>.",
|
||||
show_instructions: false,
|
||||
play_store_link: "https://play.google.com/store/apps/details?id=com.zulipmobile",
|
||||
download_link: "https://github.com/zulip/zulip-mobile/releases/latest",
|
||||
download_link: "https://github.com/zulip/zulip-flutter/releases/latest",
|
||||
legacy_download_link: "https://github.com/zulip/zulip-mobile/releases/latest",
|
||||
app_type: "mobile",
|
||||
},
|
||||
ios: {
|
||||
@@ -129,6 +131,8 @@ const apps_events = function (): void {
|
||||
const $download_instructions = $(".download-instructions");
|
||||
const $third_party_apps = $("#third-party-apps");
|
||||
const $download_android_apk = $("#download-android-apk");
|
||||
const $android_apk_current = $(".android-apk-current");
|
||||
const $android_apk_legacy = $(".android-apk-legacy");
|
||||
const $download_from_google_play_store = $(".download-from-google-play-store");
|
||||
const $download_from_apple_app_store = $(".download-from-apple-app-store");
|
||||
const $download_from_microsoft_store = $("#download-from-microsoft-store");
|
||||
@@ -141,7 +145,8 @@ const apps_events = function (): void {
|
||||
|
||||
if (version_info.alt === "Android") {
|
||||
$download_from_google_play_store.attr("href", version_info.play_store_link);
|
||||
$download_android_apk.find("a").attr("href", version_info.download_link);
|
||||
$android_apk_current.attr("href", version_info.download_link);
|
||||
$android_apk_legacy.attr("href", version_info.legacy_download_link);
|
||||
} else if (version_info.alt === "iOS") {
|
||||
$download_from_apple_app_store.attr("href", version_info.app_store_link);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user