2018-01-19 05:23:26 +01:00
|
|
|
{{ define "item_meta" }}
|
|
|
|
<div class="item-meta">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-07-18 04:01:28 +02:00
|
|
|
<a href="{{ route "feedEntries" "feedID" .entry.Feed.ID }}" title="{{ .entry.Feed.SiteURL }}">{{ truncate .entry.Feed.Title 35 }}</a>
|
2018-01-19 05:23:26 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
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>
|
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" }}"
|
|
|
|
>{{ t "entry.save.label" }}</a>
|
2018-04-30 02:43:40 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
2018-01-19 05:23:26 +01:00
|
|
|
<li>
|
2020-01-02 20:06:57 +01:00
|
|
|
<a href="{{ .entry.URL | safeURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "entry.original.label" }}</a>
|
2018-01-19 05:23:26 +01:00
|
|
|
</li>
|
2018-04-30 02:43:40 +02:00
|
|
|
{{ if .entry.CommentsURL }}
|
|
|
|
<li>
|
2020-01-02 20:06:57 +01:00
|
|
|
<a href="{{ .entry.CommentsURL | safeURL }}" title="{{ t "entry.comments.title" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "entry.comments.label" }}</a>
|
2018-04-30 02:43:40 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
2018-01-19 05:23:26 +01:00
|
|
|
<li>
|
|
|
|
<a href="#"
|
|
|
|
data-toggle-bookmark="true"
|
2018-02-04 23:37:42 +01:00
|
|
|
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
|
2018-09-22 03:53:29 +02: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 23:37:42 +01:00
|
|
|
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
|
2018-09-22 03:53:29 +02:00
|
|
|
>{{ if .entry.Starred }}★ {{ t "entry.bookmark.toggle.off" }}{{ else }}☆ {{ t "entry.bookmark.toggle.on" }}{{ end }}</a>
|
2018-01-19 05:23:26 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#"
|
2018-09-22 03:53:29 +02:00
|
|
|
title="{{ t "entry.status.title" }}"
|
2018-01-19 05:23:26 +01:00
|
|
|
data-toggle-status="true"
|
2018-09-22 03:53:29 +02:00
|
|
|
data-label-read="✔︎ {{ t "entry.status.read" }}"
|
|
|
|
data-label-unread="✘ {{ t "entry.status.unread" }}"
|
2018-02-04 23:37:42 +01:00
|
|
|
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
|
2018-09-22 03:53:29 +02:00
|
|
|
>{{ if eq .entry.Status "read" }}✘ {{ t "entry.status.unread" }}{{ else }}✔︎ {{ t "entry.status.read" }}{{ end }}</a>
|
2018-01-19 05:23:26 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|