[FEATURE] Show a special image for official distributions in EM
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Resources / Private / Partials / List / Distribution.html
1 {namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}
2 <div class="distribution">
3 <div class="distribution-image">
4 <f:if condition="{distribution.dependencies}">
5 <div class="typo3-dependency-version">
6 <em:typo3Dependency extension="{distribution}" />
7 </div>
8 </f:if>
9 <f:if condition="{official}">
10 <f:then>
11 <em:image
12 src="EXT:{distribution.extensionKey}/Resources/Public/Images/Distribution.png" alt="{distribution.title}"
13 fallbackImage="EXT:extensionmanager/Resources/Public/Images/OfficialDistribution.png"
14 height="225"
15 width="300"
16 />
17 </f:then>
18 <f:else>
19 <em:image
20 src="EXT:{distribution.extensionKey}/Resources/Public/Images/Distribution.png" alt="{distribution.title}"
21 fallbackImage="EXT:extensionmanager/Resources/Public/Images/Distribution.png"
22 height="225"
23 width="300"
24 />
25 </f:else>
26 </f:if>
27 <div class="distribution-hover">
28 <div class="distribution-hover-inner">
29 <dl class="dl-horizontal">
30 <dt><f:translate key="extensionList.distribution.title" /></dt>
31 <dd>{distribution.title}</dd>
32 <dt><f:translate key="extensionList.distribution.key" /></dt>
33 <dd>{distribution.extensionKey}</dd>
34 <dt><f:translate key="extensionList.distribution.version" /></dt>
35 <dd>{distribution.version} (<f:format.date format="d.m.Y">{distribution.lastUpdated}</f:format.date>)</dd>
36 <dt><f:translate key="extensionList.distribution.author" /></dt>
37 <dd>{distribution.authorName}</dd>
38 </dl>
39 <div class="distributionDescription">{distribution.description}</div>
40 </div>
41 </div>
42 </div>
43 <div class="distribution-meta">
44 <h2 class="distribution-title">
45 <f:link.action action="show" controller="Distribution" arguments="{extension:distribution}" class="distribution-more">
46 {distribution.title}
47 </f:link.action>
48 </h2>
49 <div class="distribution-install">
50 <f:link.action action="installDistribution" controller="Download" arguments="{extension:distribution}" class="btn btn-default t3-button-action-installdistribution">
51 <span class="fa fa-cloud-download">&nbsp;</span><f:translate key="extensionList.installDistribution">Install</f:translate>
52 </f:link.action>
53 <f:if condition="{official}">
54 <span class="label label-success">
55 <f:translate key="extensionList.officialDistribution">Official Distribution</f:translate>
56 </span>
57 </f:if>
58 </div>
59 </div>
60 </div>