1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/includes/error-404-deprecation-message.html
Sarah Schneider da60aa51e1 Support enterpriseServerVersions in Liquid statements (#16058)
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions

* update references from context.enterpriseVersions -> context.enterpriseServerReleases

* add test

* also test oldest supported enterprise version in addition to the latest

* Script to update not-free-pro-team conditionals (#16060)

* script to update not-free-pro-team conditionals

* change string to regex so we can do replace all

* remove stray test.only

* Update middleware/context.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update tests/unit/page.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update tests/unit/page.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update tests/fixtures/page-versioned-for-all-enterprise-releases.md

Co-authored-by: James M. Greene <JamesMGreene@github.com>

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-10-15 16:20:41 -04:00

13 lines
763 B
HTML

{% if enterpriseServerReleases.deprecated contains currentVersion %}
{% assign deprecatedDate = enterpriseServerReleases.dates[currentVersion].deprecationDate %}
<div class="deprecation-banner border rounded-1 mb-2 bg-yellow-light p-3 border-yellow f5">
<p>
<b>
{% data reusables.enterprise_deprecation.version_was_deprecated %}
<span data-date="{{ deprecatedDate }}" data-format="%B %d, %Y" title="{{ deprecatedDate }}">{{ deprecatedDate }}</span>.
</b>
The documentation page you are looking for may have moved. Try going to the <a href="/{{ currentLanguage }}/enterprise/{{ currentVersion}}">GitHub Enterprise Server {{ currentVersion }} documentation homepage</a> or searching by keyword.
</p>
</div>
{% endif %}