apps: Add a direct link to installation section in desktop guide.

Fixes #6595.
This commit is contained in:
akashnimare
2017-09-29 23:57:56 +05:30
committed by Tim Abbott
parent b57289aacd
commit 70367deec3
2 changed files with 7 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ var apps_events = function () {
description: "Zulip for Windows is even better than Zulip on the web, with a cleaner look, tray integration, native notifications, and support for multiple Zulip accounts.",
link: ELECTRON_APP_URL_WINDOWS,
show_instructions: true,
install_guide: "/help/desktop-app-install-guide#installing-on-windows",
},
mac: {
image: "/static/images/landing-page/macbook.png",
@@ -54,6 +55,7 @@ var apps_events = function () {
description: "Zulip on macOS is even better than Zulip on the web, with a cleaner look, tray integration, native notifications, and support for multiple Zulip accounts.",
link: ELECTRON_APP_URL_MAC,
show_instructions: true,
install_guide: "/help/desktop-app-install-guide#installing-on-macos",
},
android: {
image: "/static/images/app-screenshots/zulip-android.png",
@@ -73,6 +75,7 @@ var apps_events = function () {
description: "Zulip on the Linux desktop is even better than Zulip on the web, with a cleaner look, tray integration, native notifications, and support for multiple Zulip accounts.",
link: ELECTRON_APP_URL_LINUX,
show_instructions: true,
install_guide: "/help/desktop-app-install-guide#installing-on-linux",
},
};
@@ -128,7 +131,7 @@ var apps_events = function () {
$(".info .description").text(version_info.description);
$(".info .link").attr("href", version_info.link);
$(".image img").attr("src", version_info.image);
$download_instructions.find("a").attr("href", "/help/desktop-app-install-guide#" + version);
$download_instructions.find("a").attr("href", version_info.install_guide);
if (version_info.show_instructions) {
$download_instructions.show();

View File

@@ -8,6 +8,7 @@ To install the latest stable release (recommended for most users),
find your operating system below. If you're interested in an early
look at the newest features, consider the [beta releases](#beta-releases).
<!-- This heading is linked to directly from /apps; change with caution -->
## Installing on macOS
### Disk image (recommended)
@@ -27,6 +28,7 @@ If you have Homebrew installed and prefer to use it, here's how.
3. The app will update automatically to future versions.
(`brew upgrade` will also work, if you prefer.)
<!-- This heading is linked to directly from /apps; change with caution -->
## Installing on Windows
### Installer (recommended)
@@ -46,6 +48,7 @@ If you have Homebrew installed and prefer to use it, here's how.
4. The app will NOT update automatically. You can repeat these steps
to upgrade to future versions. <!-- TODO fact check -->
<!-- This heading is linked to directly from /apps; change with caution -->
## Installing on Linux
### apt (recommended for Ubuntu or Debian 8+)