2018-01-19 05:23:26 +01:00
{{ define "item_meta" }}
< div class = "item-meta" >
2020-03-23 00:33:35 +01:00
< ul class = "item-meta-info" >
2023-02-07 05:46:42 +01:00
< li class = "item-meta-info-title" >
2020-10-07 03:06:12 +02:00
< a href = "{{ route " feedEntries " " feedID " . entry . Feed . ID } } " title = "{{ .entry.Feed.SiteURL }}" data-feed-link = "true" > {{ truncate .entry.Feed.Title 35 }}< / a >
2018-01-19 05:23:26 +01:00
< / li >
2023-02-07 05:46:42 +01:00
< li class = "item-meta-info-timestamp" >
2018-02-04 23:37:42 +01:00
< time datetime = "{{ isodate .entry.Date }}" title = "{{ isodate .entry.Date }}" > {{ elapsed .user.Timezone .entry.Date }}< / time >
2018-01-19 05:23:26 +01:00
< / li >
2020-11-19 02:29:40 +01:00
{{ if and .user.ShowReadingTime (gt .entry.ReadingTime 0) }}
2020-07-17 04:46:24 +02:00
< li >
< span >
2020-11-19 02:29:40 +01:00
{{ plural "entry.estimated_reading_time" .entry.ReadingTime .entry.ReadingTime }}
2020-07-17 04:46:24 +02:00
< / span >
< / li >
{{ end }}
2020-01-28 03:41:34 +01:00
< / ul >
2020-03-22 23:18:12 +01:00
< ul class = "item-meta-icons" >
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-read" >
2020-07-29 05:51:55 +02:00
< a href = "#"
title="{{ t "entry.status.title" }}"
data-toggle-status="true"
2021-06-12 22:00:05 +02:00
data-label-loading="{{ t "entry.state.saving" }}"
2020-12-30 05:47:18 +01:00
data-label-read="{{ t "entry.status.read" }}"
data-label-unread="{{ t "entry.status.unread" }}"
2020-07-29 05:51:55 +02:00
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
2021-03-07 20:02:52 +01:00
>{{ if eq .entry.Status "read" }}{{ icon "unread" }}{{ else }}{{ icon "read" }}{{ end }}< span class = "icon-label" > {{ if eq .entry.Status "read" }}{{ t "entry.status.unread" }}{{ else }}{{ t "entry.status.read" }}{{ end }}< / span > < / a >
2020-07-29 05:51:55 +02:00
< / li >
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-star" >
2020-07-29 05:51:55 +02:00
< a href = "#"
data-toggle-bookmark="true"
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
data-label-loading="{{ t "entry.state.saving" }}"
2020-12-30 05:47:18 +01:00
data-label-star="{{ t "entry.bookmark.toggle.on" }}"
data-label-unstar="{{ t "entry.bookmark.toggle.off" }}"
2020-07-29 05:51:55 +02:00
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
2021-03-07 20:02:52 +01:00
>{{ if .entry.Starred }}{{ icon "unstar" }}{{ else }}{{ icon "star" }}{{ end }}< span class = "icon-label" > {{ if .entry.Starred }}{{ t "entry.bookmark.toggle.off" }}{{ else }}{{ t "entry.bookmark.toggle.on" }}{{ end }}< / span > < / a >
2020-07-29 05:51:55 +02:00
< / li >
2020-03-23 02:48:14 +01:00
{{ if .entry.ShareCode }}
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-share" >
2020-03-23 02:48:14 +01:00
< a href = "{{ route " sharedEntry " " shareCode " . entry . ShareCode } } "
title="{{ t "entry.shared_entry.title" }}"
2021-03-07 20:02:52 +01:00
target="_blank">{{ icon "share" }}< span class = "icon-label" > {{ t "entry.shared_entry.label" }}< / span > < / a >
2020-03-23 02:48:14 +01:00
< / li >
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-delete" >
2022-01-03 15:56:29 +01:00
< a href = "#"
data-confirm="true"
data-url="{{ route "unshareEntry" "entryID" .entry.ID }}"
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}">{{ icon "delete" }}< span class = "icon-label" > {{ t "entry.unshare.label" }}< / span > < / a >
< / li >
2020-03-23 02:48:14 +01:00
{{ end }}
2018-04-30 02:43:40 +02:00
{{ if .hasSaveEntry }}
< li >
< a href = "#"
2018-09-22 03:53:29 +02:00
title="{{ t "entry.save.title" }}"
2018-04-30 02:43:40 +02:00
data-save-entry="true"
data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
2018-09-22 03:53:29 +02:00
data-label-loading="{{ t "entry.state.saving" }}"
data-label-done="{{ t "entry.save.completed" }}"
2021-03-07 20:02:52 +01:00
>{{ icon "save" }}< span class = "icon-label" > {{ t "entry.save.label" }}< / span > < / a >
2018-04-30 02:43:40 +02:00
< / li >
{{ end }}
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-external-url" >
2020-03-22 23:18:12 +01:00
< a href = "{{ .entry.URL | safeURL }}"
target="_blank"
rel="noopener noreferrer"
referrerpolicy="no-referrer"
2023-03-17 14:56:17 +01:00
data-original-link="{{ .user.MarkReadOnView }}">{{ icon "external-link" }}< span class = "icon-label" > {{ t "entry.external_link.label" }}< / span > < / a >
2018-01-19 05:23:26 +01:00
< / li >
2018-04-30 02:43:40 +02:00
{{ if .entry.CommentsURL }}
2023-02-07 05:46:42 +01:00
< li class = "item-meta-icons-comments" >
2020-03-22 23:18:12 +01:00
< a href = "{{ .entry.CommentsURL | safeURL }}"
title="{{ t "entry.comments.title" }}"
target="_blank"
rel="noopener noreferrer"
referrerpolicy="no-referrer"
2021-03-07 20:02:52 +01:00
data-comments-link="true">{{ icon "comment" }}< span class = "icon-label" > {{ t "entry.comments.label" }}< / span > < / a >
2018-04-30 02:43:40 +02:00
< / li >
{{ end }}
2018-01-19 05:23:26 +01:00
< / ul >
< / div >
2020-01-07 07:02:02 +01:00
{{ end }}