Skip to content

Commit

Permalink
Include release dates on cloud images too
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Oct 28, 2023
1 parent d9adbe3 commit b02f165
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion source/assets/javascripts/app/_download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 8 additions & 2 deletions source/download.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ meta_keywords: "GoCD download, go agent download, go cd download, install gocd"
<label for="experimental-docker">Experimental</label>
</div>
<div class="go-release {{go_version}} row">
<div class=" col-xs-12">
<div class="col-xs-7">
<span class="version">Version: {{go_version}}</span>
</div>
<div class="col-xs-5">
<span class="version">Released: {{release_date}}</span>
</div>
<div class="col-xs-12">
{{> show-docker-release server_docker=server_docker agents_docker=agents_docker docker_org=docker_org }}
</div>
Expand All @@ -227,9 +230,12 @@ meta_keywords: "GoCD download, go agent download, go cd download, install gocd"
<div class="old-release">
{{#each all_other_cloud_releases}}
<div class="row go-release {{go_version}}">
<div class="col-xs-12">
<div class="col-xs-7">
<span class="version">Version: {{go_version}}</span>
</div>
<div class="col-xs-5">
<span class="version">Released: {{release_date}}</span>
</div>
<div class="col-xs-12">
{{> show-docker-release server_docker=server_docker agents_docker=agents_docker docker_org=docker_org }}
</div>
Expand Down

0 comments on commit b02f165

Please sign in to comment.