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:
parent
b3869a7833
commit
8028cc764f
4 changed files with 25 additions and 20 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue