Commit 548a883b authored by Andreas Nedbal's avatar Andreas Nedbal

[BUGFIX] Fix broken design of related files in news detail view

parent 4059cf38
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="list-group list-group-flush">
<f:for each="{files}" as="file" iteration="fileIterator">
<li>
<a class="uploadItem" href="{file.originalResource.publicUrl -> f:format.htmlspecialchars()}" {f:if(condition:data.target,then:'target="{data.target}"')}>
<div class="media">
<f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
<f:then>
<f:media file="{file}" width="150" alt="{file.properties.alternative}" />
<f:media file="{file}" width="150" alt="{file.properties.alternative}" class="mr-2"/>
</f:then>
<f:else>
<i class="uploadItemIcon fa fa-file-o mr-2" data-file-ext="{file.extension}"></i>
......@@ -34,5 +33,4 @@
</a>
</li>
</f:for>
</div>
</html>
......@@ -126,7 +126,7 @@
</f:for>
<f:if condition="{f:cObject(typoscriptObjectPath:'lib.languageSelector')}">
<div class="d-flex">
<span><f:translate key="news.detail.language.show" extensionName="t3olayout"/>:&nbsp;</span>
<span><f:translate key="news.detail.language.show" extensionName="t3olayout"/>:&nbsp;</span>
<f:cObject typoscriptObjectPath="lib.newsdetaillangmenu"/>
</div>
</f:if>
......@@ -239,13 +239,11 @@
<f:if condition="{newsItem.relatedFiles}">
<!-- related files -->
<section class="container">
<div class="frame frame-default frame-type-text frame-layout-0">
<header>
<h2>
<f:translate key="related-files"/>
</h2>
</header>
<ul class="list-unstyled d-block">
<div class="uploadsCard">
<div class="card-header">
<f:translate key="related-files"/>
</div>
<ul class="list-group list-group-flush list-unstyled">
<f:render partial="General/RelatedFiles" arguments="{files: newsItem.relatedFiles}"/>
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment