<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">

	<f:if condition="{files}">
		<ul class="ce-uploads">
			<f:for each="{files}" as="file" iteration="fileIterator">
				<li class="ce-uploads-item">
                    <a href="{file.publicUrl}" class="ce-uploads-title" {f:if(condition:data.target,then: ' target="{data.target}"')}{f:if(condition: file.title, then: ' title="{file.title}"')}>
                        <i class="ce-uploads-icon icon-file-{file.extension}"></i>
                        <span class="ce-uploads-fileName">{f:if(condition: file.properties.title, then: file.properties.title, else: file.name) -> f:format.htmlspecialchars()}</span>
                    </a>
                    <f:if condition="{file.properties.description}">
                        <f:if condition="{data.uploads_description}">
                            <div class="ce-uploads-description">{file.properties.description}</div>
                        </f:if>
                    </f:if>
                    <f:if condition="{data.filelink_size}">
                        <div class="ce-uploads-filesize"><f:format.bytes value="{file.properties.size}" /></div>
                    </f:if>

                    <f:if condition="{file.properties.download_name}">
                        <div class="ce-uploads-downloadname">{file.properties.download_name -> f:format.htmlspecialchars()}</div>
                    </f:if>
				</li>
			</f:for>
		</ul>
	</f:if>

</f:section>
</html>
