2019-11-18 04:44:12 +01:00
|
|
|
{{ define "title"}}{{ .category.Title }} > {{ t "page.feeds.title" }} ({{ .total }}){{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
|
|
|
<h1>{{ .category.Title }} > {{ t "page.feeds.title" }} ({{ .total }})</h1>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2020-06-11 05:33:58 +02:00
|
|
|
<a href="{{ route "categoryEntries" "categoryID" .category.ID }}">{{ t "menu.feed_entries" }}</a>
|
2019-11-18 04:44:12 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "editCategory" "categoryID" .category.ID }}">{{ 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 }}">{{ t "action.remove" }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</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 }}
|