ExtensionUploadHistoryList.html 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<table class="table table-hover">
		<thead>
			<tr>
				<th class="col-sm-3"><i class="fa fa-info"></i> Version</th>
				<th class="col-sm-4"><i class="fa fa-comment-o"></i> Upload comment</th>
				<th class="col-sm-3">Supports TYPO3 version</th>
				<th class="col-sm-2"><i class="fa fa-download"></i> Download</th>
			</tr>
		</thead>
		<tbody>
		<f:for each="{versionHistory}" as="version">
			<tr
			<f:if condition="{version} == {version.extension.lastVersion}">class="table-success"</f:if>
			<f:if condition="{version.reviewState} == -1">class="table-danger"</f:if>
			>
			<td>
				<strong>{version.versionString}</strong>
				<br />
				<small>
					<f:format.date format="F d, Y">{version.uploadDate}</f:format.date>
				</small>
			</td>
			<td>
				<f:format.nl2br>{version.uploadComment}</f:format.nl2br>
			</td>
			<td>
				<f:if condition="{version.typo3Dependency}">
					<strong>{version.typo3Dependency.versionString}</strong>
				</f:if>
			</td>
			<td>
				<f:if condition="{version.reviewState} != -1">
					<f:then>
						<f:link.action controller="Extension" action="download"
													 arguments="{extension : extension, versionString : version.versionString, format : 'zip'}"
													 title="{f:translate(key:'filesize')}: {version.zipFileSize -> terfe2:filesize()}"
													 class="btn btn-primary">
							<f:translate key="download_zip" />
						</f:link.action>
					</f:then>
					<f:else>
						<f:security.ifHasRole role="{settings.reviewerGroupUid}">
							<f:then>
								<f:link.action controller="Extension" action="download"
															 arguments="{extension : extension, versionString : version.versionString, format : 'zip'}"
															 class="ter-download-icon ter-download-icon-zip"
															 title="{f:translate(key:'filesize')}: {version.zipFileSize -> terfe2:filesize()}">
									<f:translate key="download_zip" />
								</f:link.action>
							</f:then>
						</f:security.ifHasRole>
					</f:else>
				</f:if>
			</td>
			</tr>
		</f:for>
		</tbody>
58
</table>