Debian Codegraph @

internal/template/templates/views/tag_entries.html

raw symbols SCIP
1 {{ define "title"}}{{ .tagName }} ({{ .total }}){{ end }}
2
3 {{ define "page_header"}}
4 <section class="page-header" aria-labelledby="page-header-title page-header-title-count">
5 <h1 id="page-header-title" dir="auto">
6 {{ .tagName }}
7 <span aria-hidden="true"> ({{ .total }})</span>
8 </h1>
9 <span id="page-header-title-count" class="sr-only">{{ plural "page.tag_entry_count" .total .total }}</span>
10 </section>
11 {{ end }}
12
13 {{ define "content"}}
14 {{ if not .entries }}
15 <p role="alert" class="alert alert-info">{{ t "alert.no_tag_entry" }}</p>
16 {{ else }}
17 <div class="pagination-top">
18 {{ template "pagination" .pagination }}
19 </div>
20 <div class="items">
21 {{ range .entries }}
22 <article
23 class="item entry-item {{ if $.user.EntrySwipe }}entry-swipe{{ end }} item-status-{{ .Status }}"
24 data-id="{{ .ID }}"
25 aria-labelledby="entry-title-{{ .ID }}"
26 tabindex="-1"
27 >
28 <header class="item-header" dir="auto">
29 <h2 id="entry-title-{{ .ID }}" class="item-title">
30 <a href="{{ routePath "/tags/%s/entry/%d" (urlEncode $.tagName) .ID }}" {{ if and $.user.AlwaysOpenExternalLinks $.user.OpenExternalLinksInNewTab }}target="_blank"{{ end }}>
31 {{ if ne .Feed.Icon.IconID 0 }}
32 <img src="{{ routePath "/feed-icon/%s" .Feed.Icon.ExternalIconID }}" width="16" height="16" loading="lazy" alt="">
33 {{ end }}
34 {{ .Title }}
35 </a>
36 </h2>
37 <span class="category">
38 <a href="{{ routePath "/category/%d/entries" .Feed.Category.ID }}">
39 {{ .Feed.Category.Title }}
40 </a>
41 </span>
42 </header>
43 {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
44 </article>
45 {{ end }}
46 </div>
47 <div class="pagination-bottom">
48 {{ template "pagination" .pagination }}
49 </div>
50 {{ end }}
51
52 {{ end }}