[BUGFIX] Render previews for all files in FSCs upload CE
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Resources / Private / Templates / Uploads.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:layout name="HeaderContentFooter" />
3 <f:section name="content">
4 <f:if condition="{files}">
5 <ul class="ce-uploads">
6 <f:for each="{files}" as="file" iteration="fileIterator">
7 <li>
8 <f:if condition="{data.uploads_type} == 1">
9 <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
10 </f:if>
11
12 <f:if condition="{data.uploads_type} == 2">
13 <f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
14 <f:then>
15 <a href="{file.publicUrl}">
16 <f:media file="{file}" width="150" alt="{file.properties.alternative}" />
17 </a>
18 </f:then>
19 <f:else>
20 <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
21 </f:else>
22 </f:if>
23 </f:if>
24
25 <div>
26 <f:if condition="{file.name}">
27 <a href="{file.publicUrl}">
28 <span class="ce-uploads-fileName">
29 {file.name}
30 </span>
31 </a>
32 </f:if>
33
34 <f:if condition="{file.properties.description}">
35 <f:if condition="{data.uploads_description}">
36 <span class="ce-uploads-description">
37 {file.properties.description}
38 </span>
39 </f:if>
40 </f:if>
41
42 <f:if condition="{data.filelink_size}">
43 <span class="ce-uploads-filesize">
44 <f:format.bytes value="{file.properties.size}" />
45 </span>
46 </f:if>
47 </div>
48 </li>
49 </f:for>
50 </ul>
51 </f:if>
52 </f:section>
53 </html>