From 17e55d2a9bc7d0f5ed922370b8ac3ad4db9f583b Mon Sep 17 00:00:00 2001 From: r Date: Thu, 30 Jan 2020 15:32:37 +0000 Subject: Add user search page --- templates/search.tmpl | 30 ++++++++++++++---------------- templates/user.tmpl | 3 +++ templates/usersearch.tmpl | 25 +++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 templates/usersearch.tmpl (limited to 'templates') diff --git a/templates/search.tmpl b/templates/search.tmpl index acbfbdd..96548b5 100644 --- a/templates/search.tmpl +++ b/templates/search.tmpl @@ -3,22 +3,20 @@ {{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
Search
-
-
- Query - - - Type - - - -
-
+
+ Query + + + Type + + + +
{{if eq .Type "statuses"}} {{range .Statuses}} diff --git a/templates/user.tmpl b/templates/user.tmpl index ca8a1ad..e3cb7e8 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -44,6 +44,9 @@ {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers +
+ search statuses +
{{.User.Note}} diff --git a/templates/usersearch.tmpl b/templates/usersearch.tmpl new file mode 100644 index 0000000..8e19fd1 --- /dev/null +++ b/templates/usersearch.tmpl @@ -0,0 +1,25 @@ +{{with .Data}} +{{template "header.tmpl" (WithContext .HeaderData $.Ctx)}} +{{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}} +
Search {{EmojiFilter .User.DisplayName .User.Emojis}}'s statuses
+ +
+ Query + + + +
+ +{{range .Statuses}} +{{template "status.tmpl" (WithContext . $.Ctx)}} +{{end}} + + + +{{template "footer.tmpl"}} +{{end}} -- cgit v1.2.3