diff --git a/controller/action/DownloadActions.class.php b/controller/action/DownloadActions.class.php index b3fc35a4..f4a549bc 100644 --- a/controller/action/DownloadActions.class.php +++ b/controller/action/DownloadActions.class.php @@ -111,24 +111,25 @@ class DownloadActions extends Actions $os = static::guessOS(); if ($os && isset($osChoices[$os])) { - list($uri, $osTitle, $osIcon, $buttonLabel, $analyticsLabel) = $osChoices[$os]; - $release = Github::getAppRelease(); - $asset = Github::getAppAsset($os); + list($uri, $osTitle, $osIcon, $buttonLabel, $analyticsLabel) = $osChoices[$os]; + $release = Github::getAppRelease(); + $asset = Github::getAppAsset($os); - $vars = $vars + [ - 'analyticsLabel' => $analyticsLabel, - 'buttonLabel' => $buttonLabel, - 'downloadUrl' => $asset ? $asset['browser_download_url'] : null, - 'os' => $os, - 'osTitle' => $osTitle, - 'osIcon' => $osIcon, - 'releaseTimestamp' => $release ? strtotime($release['created_at']) : null, - 'size' => $asset ? $asset['size'] / (1024 * 1024) : 0, //bytes -> MB - 'version' => $release ? $release['name'] : null, - 'isAuto' => Request::getParam('auto'), - ]; + $vars += [ + 'analyticsLabel' => $analyticsLabel, + 'buttonLabel' => $buttonLabel, + 'downloadUrl' => $asset ? $asset['browser_download_url'] : null, + 'os' => $os, + 'osTitle' => $osTitle, + 'osIcon' => $osIcon, + 'releaseTimestamp' => $release ? strtotime($release['created_at']) : null, + 'size' => $asset ? $asset['size'] / (1024 * 1024) : 0, //bytes -> MB + 'sourceLink' => false, + 'version' => $release ? $release['name'] : null, + 'isAuto' => Request::getParam('auto'), + ]; + } - } return $vars; } } diff --git a/data/i18n/en.yaml b/data/i18n/en.yaml index d3f2577d..a10db01e 100644 --- a/data/i18n/en.yaml +++ b/data/i18n/en.yaml @@ -49,7 +49,6 @@ download: unavailable: LBRY is not yet out on this platform, but will be soon. Enter your email to be notified when it is released. verb: Download windows: Download for Windows - works: "Works with Ubuntu, Debian, or any distro with apt or dpkg." email: address: Email code: Invite Code diff --git a/view/template/download/_downloadButton.php b/view/template/download/_downloadButton.php index dca310f4..9a8565ea 100644 --- a/view/template/download/_downloadButton.php +++ b/view/template/download/_downloadButton.php @@ -1,32 +1,38 @@ - - - - var anchor = document.getElementById('get-download-btn'); - ga('send', 'event', anchor.getAttribute('data-analytics-category'), anchor.getAttribute('data-analytics-action'), anchor.getAttribute('data-analytics-label')); - setTimeout(function() { window.location = anchor.getAttribute('href'); }, 500); - - -
- Latest Version : - , Download Size : - MB, - built on - at UTC - -
+
+ + + + var anchor = document.getElementById('get-download-btn'); + ga('send', 'event', anchor.getAttribute('data-analytics-category'), anchor.getAttribute('data-analytics-action'), anchor.getAttribute('data-analytics-label')); + setTimeout(function() { window.location = anchor.getAttribute('href'); }, 500); + + +
+
+ Version , + MB, + built on + at UTC +
- {{download.works}} +
+ Works with Ubuntu, Debian, or any distro with apt or dpkg. + For other Linux flavors, see the source. +
+ +
+ Like source code? Go here.

+

-
-Download LBRY
+ Download LBRY
diff --git a/view/template/download/get.php b/view/template/download/get.php index 338213ae..0abe2ced 100644 --- a/view/template/download/get.php +++ b/view/template/download/get.php @@ -14,10 +14,10 @@

- 'alt',])?> -

- Like source code? Go here.

-

+ 'alt', + 'sourceLink' => true + ])?>