aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/entry.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-11-29 10:43:30 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-11-29 10:59:05 -0800
commit8028cc764ff7d53370b64ec8110cbcdece787432 (patch)
tree313784b8d3d702ecae834481db4f0e0e16604423 /template/html/entry.html
parentb3869a783323fc424f8321d1a9a6379ef90b32c0 (diff)
Wrap attachments into <details> disclosure element
Diffstat (limited to 'template/html/entry.html')
-rw-r--r--template/html/entry.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/template/html/entry.html b/template/html/entry.html
index c7eea4a..df5882b 100644
--- a/template/html/entry.html
+++ b/template/html/entry.html
@@ -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>