From 4f1425febf6efb45eaf91aff19b215b8c7e77bec Mon Sep 17 00:00:00 2001 From: r Date: Sat, 30 Jan 2021 16:51:09 +0000 Subject: Add filters --- templates/filters.tmpl | 40 ++++++++++++++++++++++++++++++++++++++++ templates/user.tmpl | 1 + 2 files changed, 41 insertions(+) create mode 100644 templates/filters.tmpl (limited to 'templates') diff --git a/templates/filters.tmpl b/templates/filters.tmpl new file mode 100644 index 0000000..ef7c024 --- /dev/null +++ b/templates/filters.tmpl @@ -0,0 +1,40 @@ +{{with .Data}} +{{template "header.tmpl" (WithContext .CommonData $.Ctx)}} +
Filters
+ +{{if .Filters}} + + {{range .Filters}} + + + + + {{end}} +
{{.Phrase}}{{if not .WholeWord}}*{{end}} +
+ + + +
+
+{{else}} +
No filters added
+{{end}} + +
Add filter
+
+ + + + + + + + + + + +
+ +{{template "footer.tmpl"}} +{{end}} diff --git a/templates/user.tmpl b/templates/user.tmpl index af6a8d1..7aaefa7 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -119,6 +119,7 @@ {{end}}
search statuses + {{if .IsCurrent}} - filters {{end}}
-- cgit v1.2.3