Commit 5d26fed1 authored by Thomas Löffler's avatar Thomas Löffler

Add support for 9 LTS in results and detail view

parent 5b0ba567
Pipeline #5296 passed with stages
in 5 minutes and 57 seconds
......@@ -1158,7 +1158,8 @@ class Version extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
// @todo: Get these versions automatically
$typo3Versions = [
'7 LTS' => 7006000,
'8 LTS' => 8007000
'8 LTS' => 8007000,
'9 LTS' => 9005000
];
$supportedTypo3Versions = [];
......
......@@ -111,6 +111,7 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
// @todo: use JSON with all versions to get them
$document->setField('supports7_boolS', false);
$document->setField('supports8_boolS', false);
$document->setField('supports9_boolS', false);
$typo3Support = [];
if (VersionUtility::doesExtensionSupportTypo3Version($extension, 7006000)) {
$typo3Support[] = '7 LTS';
......@@ -120,6 +121,10 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$typo3Support[] = '8 LTS';
$document->setField('supports8_boolS', true);
}
if (VersionUtility::doesExtensionSupportTypo3Version($extension, 9005000)) {
$typo3Support[] = '9 LTS';
$document->setField('supports9_boolS', true);
}
$document->setField('typo3support_stringM', $typo3Support);
$extensionIcon = $this->getExtensionIcon($itemRecord['ext_key'], $extension->getLastVersion()->getVersionString());
......
......@@ -65,6 +65,9 @@
<f:if condition="{document.supports8_boolS}">
<li class="list-inline-item badge badge-success">8 LTS</li>
</f:if>
<f:if condition="{document.supports9_boolS}">
<li class="list-inline-item badge badge-success">9 LTS</li>
</f:if>
<f:if condition="{document.hasManual_boolS}">
<li class="list-inline-item">
<f:link.external class="badge badge-info" uri="{document.extensionDocumentationLink_stringS}" rel="nofollow">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment