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

First try of make some things more prominent

parent 8d636ef4
Pipeline #3800 passed with stages
in 5 minutes and 31 seconds
......@@ -197,7 +197,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
/** @var \T3o\TerFe2\Service\DocumentationService $documentationService */
$documentationService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\T3o\TerFe2\Service\DocumentationService::class);
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString());
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$this->view->assign('documentationLink', $documentationLink);
$pageRenderer = $this->objectManager->get(\TYPO3\CMS\Core\Page\PageRenderer::class);
......
......@@ -53,44 +53,6 @@
<f:render partial="InlineRelationList" arguments="{relations: extension.lastVersion.conflicts}" />
</dd>
</f:if>
<dt>
<f:translate key="manual" />
</dt>
<dd>
<f:if condition="{documentationLink}">
<f:then>
<f:format.raw>{documentationLink}</f:format.raw>
<f:if condition="{extension.externalManual}">
<br />
<f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="external_manual" />
</f:link.external>
</f:if>
</f:then>
<f:else>
<f:if condition="{extension.externalManual}">
<f:then>
<f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="external_manual" />
</f:link.external>
</f:then>
<f:else>
<f:translate key="extension_manual_not_available" />
</f:else>
</f:if>
</f:else>
</f:if>
</dd>
<f:if condition="{extension.forgeLink}">
<dt>
<f:translate key="bugtracker" />
</dt>
<dd>
<f:link.external rel="nofollow" uri="{extension.forgeLink}" target="_blank">
<f:translate key="found_a_bug" />
</f:link.external>
</dd>
</f:if>
<f:if condition="{extension.repositoryUrl}">
<dt>
<f:translate key="repository_url" />
......@@ -111,14 +73,4 @@
alt="{f:translate(key:'donate')}" /></f:link.external>
</dd>
</f:if>
<f:if condition="{extension.paypalUrl}">
<dt>
<f:translate key="like_it" />
</dt>
<dd>
<f:link.external rel="nofollow" uri="{extension.paypalUrl}" target="_blank">
<f:translate key="donate_url" />
</f:link.external>
</dd>
</f:if>
</dl>
......@@ -115,6 +115,35 @@
</f:if>
</div>
<div class="col-md-4">
<f:if condition="{extension.forgeLink}">
<f:link.external class="btn btn-success btn-block" rel="nofollow" uri="{extension.forgeLink}" target="_blank">
<f:translate key="found_a_bug" />
</f:link.external>
</f:if>
<f:if condition="{documentationLink}">
<f:then>
<f:link.external class="btn btn-info btn-block" uri="{documentationLink}">Manual on docs.typo3.org</f:link.external>
<f:if condition="{extension.externalManual}">
<f:link.external class="btn btn-info btn-block" rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="external_manual" />
</f:link.external>
</f:if>
</f:then>
<f:else>
<f:if condition="{extension.externalManual}">
<f:then>
<f:link.external class="btn btn-info btn-block" rel="nofollow" uri="{extension.externalManual}" target="_blank">
<f:translate key="external_manual" />
</f:link.external>
</f:then>
</f:if>
</f:else>
</f:if>
<f:if condition="{extension.paypalUrl}">
<f:link.external class="btn btn-dark btn-block" rel="nofollow" uri="{extension.paypalUrl}" target="_blank">
<f:translate key="donate_url" />
</f:link.external>
</f:if>
<div class="alert alert-info">
<f:render partial="ExtensionSingleInfo" arguments="{extension:extension, settings:settings, owner:owner, flattrUrl:flattrUrl, documentationLink:documentationLink, qualityLinkNotBroken:qualityLinkNotBroken, urlToQualityServer:urlToQualityServer}" />
</div>
......
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