From b02f1650c26d8dcfc34d39f1e05008411d0b9ede Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sat, 28 Oct 2023 14:25:13 +0800 Subject: [PATCH] Include release dates on cloud images too --- source/assets/javascripts/app/_download.js | 4 +++- source/download.html.erb | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/source/assets/javascripts/app/_download.js b/source/assets/javascripts/app/_download.js index 59ad06fd74..c7e62ad55e 100644 --- a/source/assets/javascripts/app/_download.js +++ b/source/assets/javascripts/app/_download.js @@ -145,9 +145,11 @@ var showDownloadLinks = (function ($) { R.map(addDisplayVersion), R.map(addReleaseDate) )(releaseData[0]); + var cloudReleases = R.compose( releasesLessThanAYearOld, - R.sort(compareVersions("go_version")) + R.sort(compareVersions("go_version")), + R.map(addReleaseDate) )(cloudData[0]); var latest_cloud_release = R.head(cloudReleases); diff --git a/source/download.html.erb b/source/download.html.erb index a51e05c224..a7a7c40a5c 100644 --- a/source/download.html.erb +++ b/source/download.html.erb @@ -212,9 +212,12 @@ meta_keywords: "GoCD download, go agent download, go cd download, install gocd"
-
+
Version: {{go_version}}
+
+ Released: {{release_date}} +
{{> show-docker-release server_docker=server_docker agents_docker=agents_docker docker_org=docker_org }}
@@ -227,9 +230,12 @@ meta_keywords: "GoCD download, go agent download, go cd download, install gocd"
{{#each all_other_cloud_releases}}
-
+
Version: {{go_version}}
+
+ Released: {{release_date}} +
{{> show-docker-release server_docker=server_docker agents_docker=agents_docker docker_org=docker_org }}