mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
ENH Banner for previous version
This commit is contained in:
parent
f3d5c4781b
commit
af8707589f
@ -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));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user