blob: f25cabfc4c76ad1b02ae7165ebc29ad7466e3b0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{{- define "styles" -}}
<style>
{{ partial "navigator.css.html" (dict "Link" "/") | safeCSS }}
</style>
{{- end -}}
{{- define "header" -}}
{{- partial "navigator-middle.html"
(dict
"Context" .
"Title" "Home"
"Subtitle" (print (partial "count.html" .) " " "Total")
"IconLabel" (and (gt .Paginator.PageNumber 1) "Back")
"Id" (and (gt .Paginator.PageNumber 1) "back")
"Icon" (and (gt .Paginator.PageNumber 1) "arrow-left")
"Href" (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL))
)
-}}
{{- end -}}
{{- define "middle" -}}
{{- range .Paginator.Pages -}}
{{- partial "render-embed.html" . -}}
{{- end -}}
{{- end -}}
{{- define "footer" -}}
{{- partial "pagination.html" . -}}
{{- partial "footer.html" . -}}
{{- end -}}
{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
{{- end -}}
|