diff --git a/source/assets/javascripts/app/_download.js b/source/assets/javascripts/app/_download.js index 07ee4c656e..7490e9e737 100644 --- a/source/assets/javascripts/app/_download.js +++ b/source/assets/javascripts/app/_download.js @@ -97,6 +97,14 @@ var showDownloadLinks = (function ($) { ); }); + var addReleaseDate = R.curry(function (release) { + return R.assoc( + "release_date", + new Date(release["release_time_readable"]).toDateString(), + release + ); + }); + var compareVersions = function (propertyToCompareOn) { return function (a, b) { var i, diff; @@ -135,7 +143,8 @@ var showDownloadLinks = (function ($) { releasesLessThanAYearOld, R.sort(compareVersions("go_full_version")), R.map(addURLToFiles), - R.map(addDisplayVersion) + R.map(addDisplayVersion), + R.map(addReleaseDate) )(releaseData[0]); var cloudReleases = R.compose( releasesLessThanAYearOld, diff --git a/source/download.html.erb b/source/download.html.erb index 4186f5ad41..b5f7389a9d 100644 --- a/source/download.html.erb +++ b/source/download.html.erb @@ -135,9 +135,12 @@ meta_keywords: "GoCD download, go agent download, go cd download, install gocd"