mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Refactor packages to have more idiomatic code base
This commit is contained in:
parent
c39f2e1a8d
commit
320d1b0167
109 changed files with 449 additions and 402 deletions
56
template/html/categories.html
Normal file
56
template/html/categories.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
{{ define "title"}}{{ t "Categories" }} ({{ .total }}){{ end }}
|
||||
|
||||
{{ define "content"}}
|
||||
<section class="page-header">
|
||||
<h1>{{ t "Categories" }} ({{ .total }})</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route "createCategory" }}">{{ t "Create a category" }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
{{ if not .categories }}
|
||||
<p class="alert alert-error">{{ t "There is no category." }}</p>
|
||||
{{ 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>
|
||||
</div>
|
||||
<div class="item-meta">
|
||||
<ul>
|
||||
<li>
|
||||
{{ if eq .FeedCount 0 }}
|
||||
{{ t "No feed." }}
|
||||
{{ else }}
|
||||
{{ plural "plural.categories.feed_count" .FeedCount .FeedCount }}
|
||||
{{ end }}
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route "editCategory" "categoryID" .ID }}">{{ t "Edit" }}</a>
|
||||
</li>
|
||||
{{ if eq .FeedCount 0 }}
|
||||
<li>
|
||||
<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 "removeCategory" "categoryID" .ID }}">{{ t "Remove" }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue