2018-01-18 23:23:26 -05:00
{{ define "item_meta" }}
< div class = "item-meta" >
< ul >
< li >
2018-02-04 17:37:42 -05:00
< a href = "{{ route " feedEntries " " feedID " . entry . Feed . ID } } " title = "{{ .entry.Feed.Title }}" > {{ domain .entry.Feed.SiteURL }}< / a >
2018-01-18 23:23:26 -05:00
< / li >
< li >
2018-02-04 17:37:42 -05:00
< time datetime = "{{ isodate .entry.Date }}" title = "{{ isodate .entry.Date }}" > {{ elapsed .user.Timezone .entry.Date }}< / time >
2018-01-18 23:23:26 -05:00
< / li >
< li >
< a href = "#"
title="{{ t "Save this article" }}"
data-save-entry="true"
2018-02-04 17:37:42 -05:00
data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
2018-01-18 23:23:26 -05:00
data-label-loading="{{ t "Saving..." }}"
data-label-done="{{ t "Done!" }}"
>{{ t "Save" }}< / a >
< / li >
< li >
2018-02-04 17:37:42 -05:00
< a href = "{{ .entry.URL }}" target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" data-original-link = "true" > {{ t "Original" }}< / a >
2018-01-18 23:23:26 -05:00
< / li >
< li >
< a href = "#"
data-toggle-bookmark="true"
2018-02-04 17:37:42 -05:00
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
2018-01-18 23:23:26 -05:00
data-label-loading="{{ t "Saving..." }}"
data-label-star="☆ {{ t "Star" }}"
data-label-unstar="★ {{ t "Unstar" }}"
2018-02-04 17:37:42 -05:00
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
>{{ if .entry.Starred }}★ {{ t "Unstar" }}{{ else }}☆ {{ t "Star" }}{{ end }}< / a >
2018-01-18 23:23:26 -05:00
< / li >
< li >
< a href = "#"
title="{{ t "Change entry status" }}"
data-toggle-status="true"
data-label-read="✔ {{ t "Read" }}"
data-label-unread="✘ {{ t "Unread" }}"
2018-02-04 17:37:42 -05:00
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
>{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }}< / a >
2018-01-18 23:23:26 -05:00
< / li >
2018-04-07 16:50:45 -04:00
{{ if .entry.CommentsURL }}
< li >
< a href = "{{ .entry.CommentsURL }}" title = "{{ t " View Comments " } } " target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" > {{ t "Comments" }}< / a >
< / li >
{{ end }}
2018-01-18 23:23:26 -05:00
< / ul >
< / div >
{{ end }}