Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

corporate: Update Android APK note.

Lauryn Menard59a55e6d8854
diff --git a/templates/corporate/apps.html b/templates/corporate/apps.html
index cb7af5df361..44708140009 100644
--- a/templates/corporate/apps.html
+++ b/templates/corporate/apps.html
@@ -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>
diff --git a/web/src/portico/landing-page.ts b/web/src/portico/landing-page.ts
index 0bbbacd8be9..21836159fdd 100644
--- a/web/src/portico/landing-page.ts
+++ b/web/src/portico/landing-page.ts
@@ -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 {