From 14bb18fbc7e6cdea57f27a44093d645d97bacb64 Mon Sep 17 00:00:00 2001 From: r Date: Thu, 26 Dec 2019 19:18:09 +0000 Subject: Add search page --- templates/navigation.tmpl | 1 + templates/search.tmpl | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 templates/search.tmpl (limited to 'templates') diff --git a/templates/navigation.tmpl b/templates/navigation.tmpl index bd97d2d..b82c7f5 100644 --- a/templates/navigation.tmpl +++ b/templates/navigation.tmpl @@ -16,6 +16,7 @@ notifications{{if gt .NotificationCount 0}}({{.NotificationCount}}){{end}} local twkn + search about
diff --git a/templates/search.tmpl b/templates/search.tmpl new file mode 100644 index 0000000..de80fac --- /dev/null +++ b/templates/search.tmpl @@ -0,0 +1,37 @@ +{{template "header.tmpl" .HeaderData}} +{{template "navigation.tmpl" .NavbarData}} +
Search
+ +
+
+ Query + + + Type + + + +
+
+ +{{if eq .Type "statuses"}} +{{range .Statuses}} +{{template "status.tmpl" .}} +{{end}} + +{{end}} +{{if eq .Type "accounts"}} +{{template "userlist.tmpl" .Users}} +{{end}} + + +{{template "footer.tmpl"}} -- cgit v1.2.3