{namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}

<f:layout name="main"/>

<f:section name="docheader-buttons">
	<f:be.buttons.icon uri="{f:uri.action(action: 'ter')}" icon="actions-view-go-back" title="{f:translate(key:'extConfTemplate.backToList')}" />
</f:section>

<f:section name="module-headline">
	<h1><f:translate key="showAllVersions" /> {extensionKey}</h1>
</f:section>

<f:section name="Content">
	<f:if condition="{currentVersion}">
		<p>{currentVersion.description}</p>

		<table cellpadding="0" cellspacing="0" class="currentVersionInfo">
			<tr class="ter-ext-single-info-key">
				<th><f:translate key="extensionList.showAllVersions.extensionKey" /></th>
				<td><strong>{currentVersion.extensionKey}</strong></td>
			</tr>
			<tr>
				<th><f:translate key="extensionList.showAllVersions.version" /></th>
				<td>
					{currentVersion.version}
					<span class="ter-ext-state ter-ext-state-{currentVersion.stateString}">{currentVersion.stateString}</span>
				</td>
			</tr>
			<tr>
				<th><f:translate key="extensionList.showAllVersions.lastUploaded" /></th>
				<td>
					<f:format.date>{currentVersion.lastUpdated}</f:format.date></td>
			</tr>
			<tr>
				<th><f:translate key="extensionList.showAllVersions.downloads" /></th>
				<td>
					<f:format.number decimals="0">
						{currentVersion.alldownloadcounter}
					</f:format.number>
				</td>
			</tr>
			<tr>
				<th><f:translate key="extensionList.showAllVersions.category" /></th>
				<td>{currentVersion.categoryString}</td>
			</tr>
			<tr class="ter-ext-single-info-manual">
				<th><f:translate key="extensionList.showAllVersions.manual" /></th>
				<td>
					<a href="https://docs.typo3.org/typo3cms/extensions/{currentVersion.extensionKey}/" target="_blank">
						<f:translate key="extensionList.showAllVersions.readOnline" />
					</a>
				</td>
			</tr>
			<tr>
				<th><f:translate key="extensionList.showAllVersions.author" /></th>
				<td>{currentVersion.authorName}</td>
			</tr>
		</table>
	</f:if>

	<table id="terVersionTable" class="t3-table typo3-extension-list">
		<f:render partial="List/TerShowVersionsTable" arguments="{extensions: extensions}" />
	</table>
</f:section>


