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:
parent
969efd2af7
commit
c0fcdf3b6e
1 changed files with 8 additions and 1 deletions
|
@ -135,7 +135,14 @@
|
||||||
{{ if .entry.Tags }}
|
{{ if .entry.Tags }}
|
||||||
<div class="entry-tags">
|
<div class="entry-tags">
|
||||||
{{ t "entry.tags.label" }}
|
{{ 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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="entry-date">
|
<div class="entry-date">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue