2018-01-18 23:23:26 -05:00
{{ define "item_meta" }}
< div class = "item-meta" >
< ul >
< li >
2018-07-17 22:01:28 -04:00
< a href = "{{ route " feedEntries " " feedID " . entry . Feed . ID } } " title = "{{ .entry.Feed.SiteURL }}" > {{ truncate .entry.Feed.Title 35 }}< / 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 >
2020-01-27 21:41:34 -05:00
< / ul >
2020-03-22 18:18:12 -04:00
< ul class = "item-meta-icons" >
2018-04-29 20:43:40 -04:00
{{ if .hasSaveEntry }}
< li >
< a href = "#"
2018-09-21 21:53:29 -04:00
title="{{ t "entry.save.title" }}"
2018-04-29 20:43:40 -04:00
data-save-entry="true"
data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
2018-09-21 21:53:29 -04:00
data-label-loading="{{ t "entry.state.saving" }}"
data-label-done="{{ t "entry.save.completed" }}"
2020-03-22 18:18:12 -04:00
>{{ template "icon_save" }}< span class = "icon-label" > {{ t "entry.save.label" }}< / span > < / a >
2018-04-29 20:43:40 -04:00
< / li >
{{ end }}
2018-01-18 23:23:26 -05:00
< li >
2020-03-22 18:18:12 -04:00
< a href = "{{ .entry.URL | safeURL }}"
target="_blank"
rel="noopener noreferrer"
referrerpolicy="no-referrer"
data-original-link="true">{{ template "icon_original" }}< span class = "icon-label" > {{ t "entry.original.label" }}< / span > < / a >
2018-01-18 23:23:26 -05:00
< / li >
2018-04-29 20:43:40 -04:00
{{ if .entry.CommentsURL }}
< li >
2020-03-22 18:18:12 -04:00
< a href = "{{ .entry.CommentsURL | safeURL }}"
title="{{ t "entry.comments.title" }}"
target="_blank"
rel="noopener noreferrer"
referrerpolicy="no-referrer"
data-comments-link="true">{{ template "icon_comment" }}< span class = "icon-label" > {{ t "entry.comments.label" }}< / span > < / a >
2018-04-29 20:43:40 -04:00
< / li >
{{ end }}
2018-01-18 23:23:26 -05:00
< li >
< a href = "#"
data-toggle-bookmark="true"
2018-02-04 17:37:42 -05:00
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
2018-09-21 21:53:29 -04:00
data-label-loading="{{ t "entry.state.saving" }}"
data-label-star="☆ {{ t "entry.bookmark.toggle.on" }}"
data-label-unstar="★ {{ t "entry.bookmark.toggle.off" }}"
2018-02-04 17:37:42 -05:00
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
2020-03-22 18:18:12 -04:00
>< span class = "icon-label" > {{ if .entry.Starred }}★ {{ t "entry.bookmark.toggle.off" }}{{ else }}☆ {{ t "entry.bookmark.toggle.on" }}{{ end }}< / span > < / a >
2018-01-18 23:23:26 -05:00
< / li >
< li >
< a href = "#"
2018-09-21 21:53:29 -04:00
title="{{ t "entry.status.title" }}"
2018-01-18 23:23:26 -05:00
data-toggle-status="true"
2020-03-22 18:18:12 -04:00
data-label-read="✔ {{ t "entry.status.read" }}"
2018-09-21 21:53:29 -04:00
data-label-unread="✘ {{ t "entry.status.unread" }}"
2018-02-04 17:37:42 -05:00
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
2020-03-22 18:18:12 -04:00
>< span class = "icon-label" > {{ if eq .entry.Status "read" }}✘ {{ t "entry.status.unread" }}{{ else }}✔ {{ t "entry.status.read" }}{{ end }}< / span > < / a >
2018-01-18 23:23:26 -05:00
< / li >
< / ul >
< / div >
2020-01-07 01:02:02 -05:00
{{ end }}