1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

fix(ui): update entry tags display logic to show links based on user authentication

This commit is contained in:
Frédéric Guillot 2025-03-28 15:47:08 -07:00
parent 969efd2af7
commit c0fcdf3b6e

View file

@ -135,7 +135,14 @@
{{ if .entry.Tags }}
<div class="entry-tags">
{{ t "entry.tags.label" }}
{{range $i, $e := .entry.Tags}}{{if $i}}, {{end}}<a href="{{ route "tagEntriesAll" "tagName" (urlEncode $e) }}"><strong>{{ $e }}</strong></a>{{end}}
{{ range $i, $e := .entry.Tags }}
{{if $i}}, {{end}}
{{ if $.user }}
<a href="{{ route "tagEntriesAll" "tagName" (urlEncode $e) }}"><strong>{{ $e }}</strong></a>
{{ else }}
<strong>{{ $e }}</strong>
{{ end }}
{{ end }}
</div>
{{ end }}
<div class="entry-date">