Skip to content
Permalink
Browse files
Note when a release is archived. Link to latest release in older rele…
…ase notes.
  • Loading branch information
mike-jumper committed Jan 10, 2019
1 parent deaf070 commit 5d04c3e3ff09fc215e0f06380eeb99e1dc8f4708
Showing 5 changed files with 18 additions and 2 deletions.
@@ -3,11 +3,14 @@
permalink: /release/release-notes-:title
---

{% assign latest = site.releases | where: 'released', 'true' | sort: 'date' | last %}
<div class="legacy-release-note">
<p><strong>The release below is from prior to Guacamole's acceptance into
the Apache Incubator.</strong> It is not an Apache Software Foundation
release, and is licensed under the <a
href="https://opensource.org/licenses/MIT">MIT license</a>.</p>
href="https://opensource.org/licenses/MIT">MIT license</a>. The latest
release of Apache Guacamole is <a href="{{ latest.url }}">{{
latest.title }}</a>.</p>
</div>

<div id="links">
@@ -11,6 +11,16 @@
</div>
{% endunless %}

{% if page.archived %}
{% assign latest = site.releases | where: 'released', 'true' | sort: 'date' | last %}
<div class="archive-disclaimer">
<p>Apache Guacamole {{ page.title }} is an archived release, and was
originally released on {{ page.date | date: "%Y-%m-%d" }}. <strong>The
latest release of Apache Guacamole is <a href="{{ latest.url }}">{{
latest.title }}</a>.</strong></p>
</div>
{% endif %}

<h1>Apache Guacamole {{ page.title }}</h1>

<div id="links">
@@ -1,6 +1,7 @@
---

released: true
archived: true
title: 0.9.10-incubating
date: 2016-12-29 19:52:00 -0800
summary: >
@@ -1,6 +1,7 @@
---

released: true
archived: false
title: 0.9.11-incubating
date: 2017-02-02 09:24:00 -0800
summary: >
@@ -555,7 +555,8 @@ table.releases td {
}

#content > .legacy-release-note,
#content > .draft-disclaimer {
#content > .draft-disclaimer,
#content > .archive-disclaimer {
background: #FFFFFA;
border: 1px solid rgba(0, 0, 0, 0.25);
width: 8in;

0 comments on commit 5d04c3e

Please sign in to comment.