2018-09-22 03:53:29 +02:00
|
|
|
{{ define "title"}}{{ t "page.feeds.title" }} ({{ .total }}){{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
2018-09-22 03:53:29 +02:00
|
|
|
<h1>{{ t "page.feeds.title" }} ({{ .total }})</h1>
|
2017-11-20 06:10:04 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "export" }}">{{ t "menu.export" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "import" }}">{{ t "menu.import" }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
2017-11-22 07:36:00 +01:00
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
<a href="{{ route "refreshAllFeeds" }}">{{ t "menu.refresh_all_feeds" }}</a>
|
2017-11-22 07:36:00 +01:00
|
|
|
</li>
|
2017-11-20 06:10:04 +01:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ if not .feeds }}
|
2018-09-22 03:53:29 +02:00
|
|
|
<p class="alert">{{ t "alert.no_feed" }}</p>
|
2017-11-20 06:10:04 +01:00
|
|
|
{{ else }}
|
|
|
|
<div class="items">
|
|
|
|
{{ range .feeds }}
|
2017-12-27 05:42:43 +01:00
|
|
|
<article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
|
2017-11-20 06:10:04 +01:00
|
|
|
<div class="item-header">
|
|
|
|
<span class="item-title">
|
2017-12-25 03:04:34 +01:00
|
|
|
{{ if .Icon }}
|
2018-07-11 08:20:32 +02:00
|
|
|
<img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16" alt="{{ .Title }}">
|
2017-11-20 06:10:04 +01:00
|
|
|
{{ end }}
|
|
|
|
<a href="{{ route "feedEntries" "feedID" .ID }}">{{ .Title }}</a>
|
|
|
|
</span>
|
|
|
|
<span class="category">
|
|
|
|
<a href="{{ route "categoryEntries" "categoryID" .Category.ID }}">{{ .Category.Title }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="item-meta">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-07-18 04:01:28 +02:00
|
|
|
<a href="{{ .SiteURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-09-22 03:53:29 +02:00
|
|
|
{{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "refreshFeed" "feedID" .ID }}">{{ t "Refresh" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "editFeed" "feedID" .ID }}">{{ t "Edit" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2017-11-21 23:44:47 +01:00
|
|
|
<a href="#"
|
|
|
|
data-confirm="true"
|
2018-09-22 03:53:29 +02:00
|
|
|
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>
|
2017-11-20 06:10:04 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2017-12-27 05:42:43 +01:00
|
|
|
{{ if ne .ParsingErrorCount 0 }}
|
|
|
|
<div class="parsing-error">
|
2018-09-22 03:53:29 +02:00
|
|
|
<strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "page.feeds.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong>
|
2018-02-24 04:58:08 +01:00
|
|
|
- <small class="parsing-error-message">{{ .ParsingErrorMsg }}</small>
|
2017-12-27 05:42:43 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|