1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

Wrap attachments into <details> disclosure element

This commit is contained in:
Frédéric Guillot 2019-11-29 10:43:30 -08:00
parent b3869a7833
commit 8028cc764f
4 changed files with 25 additions and 20 deletions

View file

@ -92,8 +92,8 @@
{{ noescape (proxyFilter .entry.Content) }}
</article>
{{ if .entry.Enclosures }}
<aside class="entry-enclosures">
<h3>{{ t "page.entry.attachments" }}</h3>
<details class="entry-enclosures">
<summary>{{ t "page.entry.attachments" }} ({{ len .entry.Enclosures }})</summary>
{{ range .entry.Enclosures }}
<div class="entry-enclosure">
{{ if hasPrefix .MimeType "audio/" }}
@ -120,7 +120,7 @@
</div>
</div>
{{ end }}
</aside>
</details>
{{ end }}
</section>