aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/feeds.html')
-rw-r--r--template/html/feeds.html55
1 files changed, 1 insertions, 54 deletions
diff --git a/template/html/feeds.html b/template/html/feeds.html
index 7d4a428..e4d24bf 100644
--- a/template/html/feeds.html
+++ b/template/html/feeds.html
@@ -22,60 +22,7 @@
{{ if not .feeds }}
<p class="alert">{{ t "alert.no_feed" }}</p>
{{ else }}
- <div class="items">
- {{ range .feeds }}
- <article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
- <div class="item-header">
- <span class="item-title">
- {{ if .Icon }}
- <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">
- <ul>
- <li>
- <a href="{{ .SiteURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
- </li>
- <li>
- {{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time>
- </li>
- </ul>
- <ul>
- <li>
- <a href="{{ route "refreshFeed" "feedID" .ID }}">{{ t "menu.refresh_feed" }}</a>
- </li>
- <li>
- <a href="{{ route "editFeed" "feedID" .ID }}">{{ t "menu.edit_feed" }}</a>
- </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" }}"
- data-url="{{ route "removeFeed" "feedID" .ID }}">{{ t "action.remove" }}</a>
- </li>
- </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>
+ {{ template "feed_list" dict "user" .user "feeds" .feeds "ParsingErrorCount" .ParsingErrorCount }}
{{ end }}
{{ end }}