2017-11-20 00:10:04 -05:00
|
|
|
{{ define "title"}}{{ t "Feeds" }} ({{ .total }}){{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
|
|
|
<h1>{{ t "Feeds" }} ({{ .total }})</h1>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "export" }}">{{ t "Export" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "import" }}">{{ t "Import" }}</a>
|
|
|
|
</li>
|
2017-11-22 01:36:00 -05:00
|
|
|
<li>
|
2017-12-26 23:58:16 -05:00
|
|
|
<a href="{{ route "refreshAllFeeds" }}">{{ t "Refresh all feeds in background" }}</a>
|
2017-11-22 01:36:00 -05:00
|
|
|
</li>
|
2017-11-20 00:10:04 -05:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ if not .feeds }}
|
|
|
|
<p class="alert">{{ t "You don't have any subscription." }}</p>
|
|
|
|
{{ else }}
|
|
|
|
<div class="items">
|
|
|
|
{{ range .feeds }}
|
2017-12-26 23:42:43 -05:00
|
|
|
<article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
|
2017-11-20 00:10:04 -05:00
|
|
|
<div class="item-header">
|
|
|
|
<span class="item-title">
|
2017-12-24 21:04:34 -05:00
|
|
|
{{ if .Icon }}
|
2017-11-20 00:10:04 -05:00
|
|
|
<img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16">
|
|
|
|
{{ 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>
|
|
|
|
<a href="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{{ t "Last check:" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed .CheckedAt }}</time>
|
|
|
|
</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 17:44:47 -05:00
|
|
|
<a href="#"
|
|
|
|
data-confirm="true"
|
|
|
|
data-label-question="{{ t "Are you sure?" }}"
|
|
|
|
data-label-yes="{{ t "yes" }}"
|
|
|
|
data-label-no="{{ t "no" }}"
|
|
|
|
data-label-loading="{{ t "Work in progress..." }}"
|
|
|
|
data-url="{{ route "removeFeed" "feedID" .ID }}">{{ t "Remove" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2017-12-26 23:42:43 -05:00
|
|
|
{{ if ne .ParsingErrorCount 0 }}
|
|
|
|
<div class="parsing-error">
|
|
|
|
<strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "plural.feed.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong>
|
|
|
|
<small class="parsing-error-message">({{ .ParsingErrorMsg }})</small>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-11-20 00:10:04 -05:00
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|