Verified Commit f33a27a3 authored by Dave Long's avatar Dave Long
Browse files

fix: #3117430 file-link template should not always display file_size

By: bnjmnm
By: mfb
By: smustgrave
parent 6f2da240
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for core/themes/claro/templates/field/file-link.html.twig: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,4 +14,4 @@
 */
#}
{{ attach_library('claro/classy.file') }}
<span{{ attributes }}>{{ link }} <span class="file__size">({{ file_size }})</span></span>
<span{{ attributes }}>{{ link }}{% if file_size %} <span class="file__size">({{ file_size }})</span>{% endif %}</span>