Merge pull request #265 from creative-commoners/pulls/master/banner

ENH Banner for previous version
This commit is contained in:
Guy Sartorelli 2023-05-12 11:16:31 +12:00 committed by GitHub
commit 1cad1c1adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,9 @@ const getVersionMessage = (): ReactElement | ReactElement[] | string | null => {
const EOL = [
'3',
];
const PREVIOUS_RELEASE = [
'4',
];
const PRE_RELEASE = [
'6',
];
@ -191,6 +194,10 @@ const getVersionMessage = (): ReactElement | ReactElement[] | string | null => {
'has not yet been given a stable release. See <a target="_blank" href="https://www.silverstripe.org/software/roadmap/">the release roadmap</a> for more information'
));
}
if (PREVIOUS_RELEASE.includes(version)) {
return parse(makeMessage('info', 'check-circle', 'supported', 'is still supported though will not receive any additional features'));
}
// CURRENT_RELEASE
return parse(makeMessage('success', 'check-circle', 'supported', null));
};