Show.html 4.1 KB
Newer Older
1
<html xmlns:terfe2="http://typo3.org/ns/T3o/TerFe2/ViewHelpers" xmlns:tl="http://typo3.org/ns/T3o/T3olayout/ViewHelpers">
2

3
<f:layout name="Default" />
4 5

<f:section name="main">
6

7 8
	<f:if condition="{extension}">
		<f:then>
9
			<tl:titleTag>{extension.lastVersion.title} ({extension.extKey})</tl:titleTag>
10
			<f:if condition="{extension.lastVersion.reviewState} == -2">
11
				<div class="alert alert-warning mt-3 mb-3" role="alert">
12
					<h4 class="alert-header">
13
						<span class="ter-ext-state-beta"><i class="fa fa-exclamation-triangle"></i></span>
14
						Outdated extension
15
						<small class="text-muted">This extension supports none of the currently supported TYPO3 core version</small>
16 17 18
					</h4>
				</div>
			</f:if>
19

20
			<div class="row mt-3 align-items-center">
21 22 23 24 25
				<div class="col-md-9">
					<header>
						<terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}" class="ter-ext-icon" />
						<h1>
							{extension.lastVersion.title}
26 27
							<small class="text-muted">
								<br />{extension.extKey} /
28 29 30 31
								<span class="ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
							</small>
						</h1>
					</header>
32
				</div>
33
				<div class="col-md-3">
34
					<f:if condition="{extension.lastVersion.reviewState} != -1">
35
						<f:link.action class="btn btn-primary btn-lg pull-right" controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}">
36 37
							Download {extension.lastVersion.versionString}
						</f:link.action>
38 39 40
					</f:if>
				</div>
			</div>
41

42
			<div class="row mb-3">
43
				<div class="col-md-8">
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
					<p>{extension.lastVersion.description}</p>
					<f:if condition="{extension.lastVersion.typo3Dependency}">
						<p>
							<strong>
								This version works for TYPO3 {extension.lastVersion.typo3Dependency.versionString}
							</strong>
						</p>
					</f:if>
					<f:if condition="{extension.tags}">
						<h3>Tags</h3>
						<p class="tags">
							<f:for each="{extension.tags}" as="tag">
								<f:link.page class="btn btn-info mb-1" additionalParams="{q: '{tag.title}'}">#{tag.title}</f:link.page>
							</f:for>
						</p>
					</f:if>
60 61 62 63 64 65
					<h3>
						<f:translate key="last_upload_comment" />
					</h3>
					<p>
						<f:format.nl2br>{extension.lastVersion.uploadComment}</f:format.nl2br>
					</p>
66 67 68 69
					<f:if condition="{versionHistory->f:count()} >= 1}">
						<h3>
							<f:translate key="downloads_by_version" />
						</h3>
70 71 72 73 74 75
						<script type="text/javascript">
							var versionChartData = {extension.downloadsByVersionsAsJson -> f:format.raw()};
						</script>
						<div id="versionChart">

						</div>
76
					</f:if>
77
				</div>
78 79 80 81
				<div class="col-md-4">
					<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>
82 83
				</div>
			</div>
84

85 86
			<f:render partial="InstallationHowTo" arguments="{_all}" />

87 88 89 90 91 92 93 94
			<f:if condition="{versionHistory->f:count()} >= 1">
				<h3>
					<f:translate key="version_history" />
				</h3>
				<div class="ter-ext-single-versionhistory ter-toggle-hide">
					<f:render partial="ExtensionUploadHistoryList" arguments="{versionHistory: extension.reverseVersionsByVersionNumber, extension: extension}" />
				</div>
			</f:if>
95

96 97 98 99 100 101
			<f:if condition="{settings.show.reviewForm}">
				<f:security.ifHasRole role="{settings.reviewerGroupUid}">
					<div class="hide-tab tab-content lite-tab-panes-black">
						<div class="ter-ext-single" style="padding-top: 10px;">
							<f:render partial="ReviewForm" arguments="{extension: extension}" />
						</div>
102
					</div>
103
				</f:security.ifHasRole>
104
			</f:if>
105

106
			<div class="socialshareprivacy"></div>
sventb's avatar
sventb committed
107

108 109 110 111 112 113 114
			<f:link.page pageUid="1" class="btn btn-success mb-3">
				<f:translate key="back_to_extension_list" />
			</f:link.page>
		</f:then>
		<f:else>
			<div class="alert alert-warning">
				<f:translate key="msg.extension_not_found" />
115
			</div>
116
		</f:else>
117
	</f:if>
118
</f:section>
119 120

</html>