diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-11-29 10:27:25 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-11-29 10:36:35 -0800 |
commit | b3869a783323fc424f8321d1a9a6379ef90b32c0 (patch) | |
tree | c7273372f684d1ab997238c32cb172288fdea9e7 /template/html | |
parent | 912a98788e66b836125fe8ef37672a4de20c169c (diff) |
Show attachment size on entry page
Diffstat (limited to 'template/html')
-rw-r--r-- | template/html/entry.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/html/entry.html b/template/html/entry.html index 4dcd3ca..c7eea4a 100644 --- a/template/html/entry.html +++ b/template/html/entry.html @@ -115,8 +115,8 @@ {{ end }} <div class="entry-enclosure-download"> - <a href="{{ .URL }}" title="{{ .URL }} ({{ .MimeType }})" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "action.download" }}</a> - <small>({{ .URL }})</small> + <a href="{{ .URL }}" title="{{ t "action.download" }}{{ if gt .Size 0 }} - {{ formatFileSize .Size }}{{ end }} ({{ .MimeType }})" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL }}</a> + <small>{{ if gt .Size 0 }} - <strong>{{ formatFileSize .Size }}</strong>{{ end }}</small> </div> </div> {{ end }} |