miniflux/template/html/categories.html

52 lines
2 KiB
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.categories.title" }} ({{ .total }}){{ end }}
2017-11-20 06:10:04 +01:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.categories.title" }} ({{ .total }})</h1>
2017-11-20 06:10:04 +01:00
<ul>
<li>
<a href="{{ route "createCategory" }}">{{ t "menu.create_category" }}</a>
2017-11-20 06:10:04 +01:00
</li>
</ul>
</section>
{{ if not .categories }}
<p class="alert alert-error">{{ t "alert.no_category" }}</p>
2017-11-20 06:10:04 +01:00
{{ else }}
<div class="items">
{{ range .categories }}
<article class="item">
<div class="item-header">
<span class="item-title">
<a href="{{ route "categoryEntries" "categoryID" .ID }}">{{ .Title }}</a>
</span>
2019-11-18 04:44:12 +01:00
(<span title="{{ if eq .FeedCount 0 }}{{ t "page.categories.no_feed" }}{{ else }}{{ plural "page.categories.feed_count" .FeedCount .FeedCount }}{{ end }}">{{ .FeedCount }}</span>)
2017-11-20 06:10:04 +01:00
</div>
<div class="item-meta">
<ul>
<li>
2019-11-18 04:44:12 +01:00
<a href="{{ route "categoryFeeds" "categoryID" .ID }}">{{ t "page.categories.feeds" }}</a>
2017-11-20 06:10:04 +01:00
</li>
<li>
2018-09-22 19:22:58 +02:00
<a href="{{ route "editCategory" "categoryID" .ID }}">{{ t "menu.edit_category" }}</a>
2017-11-20 06:10:04 +01:00
</li>
{{ if eq .FeedCount 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-url="{{ route "removeCategory" "categoryID" .ID }}">{{ t "action.remove" }}</a>
2017-11-20 06:10:04 +01:00
</li>
{{ end }}
</ul>
</div>
</article>
{{ end }}
</div>
{{ end }}
{{ end }}