Browse code

Add last modified date to secure download content element listing

Benjamin Roth authored on02/08/2023 12:15:52
Showing1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
                         {{- studio.figure(preview, { attr: { class: ('image_container') }}) -}}
12 12
                     {% endfor %}
13 13
                 {% endif %}
14
-                <a href="{{ file.href }}" title="{{ file.title }}" type="{{ file.mime }}">{{ file.link}} <span class="size">({{ file.filesize }})</span></a>
14
+                <a href="{{ file.href }}" title="{{ file.title }}" type="{{ file.mime }}">{{ file.mtime|date("d.m.Y") }} {{ file.link}} <span class="size">({{ file.filesize }})</span></a>
15 15
             </li>
16 16
         {% endfor %}
17 17
     </ul>