Skip to content

Commit 91abecb

Browse files
committed
add upgrade notices to release notes layout, localized with links
1 parent 82631ac commit 91abecb

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

data/ui.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ header:
1818
please visit our
1919
<a id="to-english-doc" href="/en">English documentation</a>.
2020
early_access: 📣 Please <b>do not share</b> this URL publicly. This page contains content about an early access feature.
21+
ghes_release_notes_upgrade_patch_only: 📣 This is not the <a href="#{{ latestPatch }}">latest patch release</a> of Enterprise Server.
22+
ghes_release_notes_upgrade_release_only: 📣 This is not the <a href="/enterprise-server@{{ latestRelease }}/admin/release-notes">latest release</a> of Enterprise Server.
23+
ghes_release_notes_upgrade_patch_and_release: 📣 This is not the <a href="#{{ latestPatch }}">latest patch release</a> of this release series, and this is not the <a href="/enterprise-server@{{ latestRelease }}/admin/release-notes">latest release</a> of Enterprise Server.
2124
search:
2225
need_help: Need help?
2326
placeholder: Search topics, products...

layouts/release-notes.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ <h2 class="border-bottom-0 m-0 p-0">
6060
</div>
6161

6262
<p class="text-gray mt-1">{{ patch.date | date: "%B %d, %Y" }}</p>
63+
64+
{% if patch.version != latestPatch and allVersions[currentVersion].currentRelease == latestRelease %}
65+
<p class="text-gray mt-1">{% data ui.header.notices.ghes_release_notes_upgrade_patch_only %}</p>
66+
{% endif %}
67+
68+
{% if patch.version == latestPatch and allVersions[currentVersion].currentRelease != latestRelease %}
69+
<p class="text-gray mt-1">{% data ui.header.notices.ghes_release_notes_upgrade_release_only %}</p>
70+
{% endif %}
71+
72+
{% if patch.version != latestPatch and allVersions[currentVersion].currentRelease != latestRelease %}
73+
<p class="text-gray mt-1">{% data ui.header.notices.ghes_release_notes_upgrade_patch_and_release %}</p>
74+
{% endif %}
6375
</header>
6476

6577
<div class="container-xl px-3">

0 commit comments

Comments
 (0)