2019-11-18 04:44:12 +01:00
|
|
|
{{ define "title"}}{{ .category.Title }} > {{ t "page.feeds.title" }} ({{ .total }}){{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
2024-01-23 03:42:10 +01:00
|
|
|
<h1 dir="auto">
|
|
|
|
{{ .category.Title }} <span aria-hidden="true">></span> {{ t "page.feeds.title" }}
|
|
|
|
<span aria-hidden="true"> ({{ .total }})</span>
|
|
|
|
</h1>
|
|
|
|
<span class="sr-only">
|
|
|
|
{{ t "page.categories.feeds.total" }}: {{ .total }}
|
|
|
|
</span>
|
|
|
|
<nav aria-label="{{ .category.Title }} {{ t "page.feeds.title" }} {{ t "menu.title" }}">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "categoryEntries" "categoryID" .category.ID }}">{{ icon "entries" }}{{ t "menu.feed_entries" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "editCategory" "categoryID" .category.ID }}">{{ icon "edit" }}{{ t "menu.edit_category" }}</a>
|
|
|
|
</li>
|
|
|
|
{{ if eq .total 0 }}
|
|
|
|
<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-redirect-url="{{ route "categories" }}"
|
|
|
|
data-url="{{ route "removeCategory" "categoryID" .category.ID }}">{{ icon "delete" }}{{ t "action.remove" }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "refreshCategoryFeedsPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2019-11-18 04:44:12 +01:00
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ if not .feeds }}
|
|
|
|
<p class="alert">{{ t "alert.no_feed_in_category" }}</p>
|
|
|
|
{{ else }}
|
|
|
|
{{ template "feed_list" dict "user" .user "feeds" .feeds "ParsingErrorCount" .ParsingErrorCount }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|