mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Merge pull request #265 from creative-commoners/pulls/master/banner
ENH Banner for previous version
This commit is contained in:
commit
1cad1c1adc
@ -157,6 +157,9 @@ const getVersionMessage = (): ReactElement | ReactElement[] | string | null => {
|
|||||||
const EOL = [
|
const EOL = [
|
||||||
'3',
|
'3',
|
||||||
];
|
];
|
||||||
|
const PREVIOUS_RELEASE = [
|
||||||
|
'4',
|
||||||
|
];
|
||||||
const PRE_RELEASE = [
|
const PRE_RELEASE = [
|
||||||
'6',
|
'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'
|
'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));
|
return parse(makeMessage('success', 'check-circle', 'supported', null));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user