miniflux/template/html/feeds.html

78 lines
3.2 KiB
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.feeds.title" }} ({{ .total }}){{ end }}
2017-11-20 06:10:04 +01:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.feeds.title" }} ({{ .total }})</h1>
2017-11-20 06:10:04 +01:00
<ul>
<li>
<a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
<a href="{{ route "export" }}">{{ t "menu.export" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
<a href="{{ route "import" }}">{{ t "menu.import" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
<a href="{{ route "refreshAllFeeds" }}">{{ t "menu.refresh_all_feeds" }}</a>
</li>
2017-11-20 06:10:04 +01:00
</ul>
</section>
{{ if not .feeds }}
<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>
<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>
{{ 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>
<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>
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">
<strong title="{{ .ParsingErrorMsg }}" class="parsing-error-count">{{ plural "page.feeds.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong>
- <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 }}