Skip to content

Commit

Permalink
Web|Builder: Stable builds link to release notes in the wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 2, 2017
1 parent 08ca93f commit f1e0f0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions webapi/1/builds.inc.php
Expand Up @@ -189,6 +189,11 @@ function cmp($a, $b) {
if (!empty($row['blurb'])) {
$text .= $row['blurb'];
}
if ($type == 'stable') {
$ver = omit_zeroes($version);
$relnotes_link = DENG_WIKI_URL."/Doomsday_version_".$ver;
$text .= "<p>See also: <a href='$relnotes_link'>Release notes for $ver</a></p>";
}
return $text;
}

Expand Down
3 changes: 2 additions & 1 deletion webapi/1/builds.php
Expand Up @@ -224,7 +224,8 @@ function generate_build_index_page()

echo("<h2 id='versions-subtitle'>Versions</h2><div id='other-versions'>\n");
foreach ($all_versions as $version => $builds) {
echo("<div class='version'><h3>".omit_zeroes($version)."</h3>"
$relnotes_link = DENG_WIKI_URL."/Doomsday_version_".omit_zeroes($version);
echo("<div class='version'><h3><a href='$relnotes_link'>".omit_zeroes($version)."</a></h3>"
."<div class='buildlist'>\n");
foreach ($builds as $info) {
$type = $info['type'];
Expand Down

0 comments on commit f1e0f0a

Please sign in to comment.