2019-11-18 04:44:12 +01:00
|
|
|
{{ define "feed_list" }}
|
|
|
|
<div class="items">
|
|
|
|
{{ range .feeds }}
|
|
|
|
<article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
|
2020-06-25 06:46:37 +02:00
|
|
|
<div class="item-header" dir="auto">
|
2019-11-18 04:44:12 +01:00
|
|
|
<span class="item-title">
|
2021-02-23 06:09:03 +01:00
|
|
|
{{ if and (.Icon) (gt .Icon.IconID 0) }}
|
2019-11-18 04:44:12 +01:00
|
|
|
<img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Title }}">
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Disabled }} 🚫 {{ end }}
|
|
|
|
<a href="{{ route "feedEntries" "feedID" .ID }}">{{ .Title }}</a>
|
|
|
|
</span>
|
|
|
|
<span class="feed-entries-counter">
|
|
|
|
(<span title="{{ t "page.feeds.unread_counter" }}">{{ .UnreadCount }}</span>/<span title="{{ t "page.feeds.read_counter" }}">{{ .ReadCount }}</span>)
|
|
|
|
</span>
|
|
|
|
<span class="category">
|
|
|
|
<a href="{{ route "categoryEntries" "categoryID" .Category.ID }}">{{ .Category.Title }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="item-meta">
|
2020-03-23 00:33:35 +01:00
|
|
|
<ul class="item-meta-info">
|
2020-06-25 06:46:37 +02:00
|
|
|
<li dir="auto">
|
2020-01-02 20:06:57 +01:00
|
|
|
<a href="{{ .SiteURL | safeURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
|
2019-11-18 04:44:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-06-15 04:00:41 +02:00
|
|
|
<ul class="item-meta-icons">
|
2019-11-18 04:44:12 +01:00
|
|
|
<li>
|
2020-06-15 04:00:41 +02:00
|
|
|
<a href="{{ route "refreshFeed" "feedID" .ID }}">{{ template "icon_refresh" }}<span class="icon-label">{{ t "menu.refresh_feed" }}</span></a>
|
2019-11-18 04:44:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2020-06-15 04:00:41 +02:00
|
|
|
<a href="{{ route "editFeed" "feedID" .ID }}">{{ template "icon_edit" }}<span class="icon-label">{{ t "menu.edit_feed" }}</span></a>
|
2019-11-18 04:44:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#"
|
|
|
|
data-confirm="true"
|
|
|
|
data-label-question="{{ t "confirm.question" }}"
|
|
|
|
data-label-yes="{{ t "confirm.yes" }}"
|
|
|
|
data-label-no="{{ t "confirm.no" }}"
|
|
|
|
data-label-loading="{{ t "confirm.loading" }}"
|
2020-06-15 04:00:41 +02:00
|
|
|
data-url="{{ route "removeFeed" "feedID" .ID }}">{{ template "icon_delete" }}<span class="icon-label">{{ t "action.remove" }}</span></a>
|
2019-11-18 04:44:12 +01:00
|
|
|
</li>
|
2020-08-20 07:17:33 +02:00
|
|
|
{{ if .UnreadCount }}
|
|
|
|
<li>
|
2021-03-07 02:45:25 +01:00
|
|
|
<a href="#"
|
|
|
|
data-confirm="true"
|
|
|
|
data-label-question="{{ t "confirm.question" }}"
|
|
|
|
data-label-yes="{{ t "confirm.yes" }}"
|
|
|
|
data-label-no="{{ t "confirm.no" }}"
|
|
|
|
data-label-loading="{{ t "confirm.loading" }}"
|
|
|
|
data-url="{{ route "markFeedAsRead" "feedID" .ID }}">{{ template "icon_read" }}<span class="icon-label">{{ t "menu.mark_all_as_read" }}</span></a>
|
2020-08-20 07:17:33 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
2019-11-18 04:44:12 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ if ne .ParsingErrorCount 0 }}
|
|
|
|
<div class="parsing-error">
|
|
|
|
<strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "page.feeds.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong>
|
|
|
|
- <small class="parsing-error-message">{{ .ParsingErrorMsg }}</small>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-06-25 06:46:37 +02:00
|
|
|
{{ end }}
|