From 72dbe50341179d345f8cbd1bf5a97809037db364 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 29 Dec 2019 03:43:57 +0000 Subject: Add following and followers page --- templates/followers.tmpl | 12 ++++++++++++ templates/following.tmpl | 12 ++++++++++++ templates/user.tmpl | 4 +++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 templates/followers.tmpl create mode 100644 templates/following.tmpl (limited to 'templates') diff --git a/templates/followers.tmpl b/templates/followers.tmpl new file mode 100644 index 0000000..1c4e9eb --- /dev/null +++ b/templates/followers.tmpl @@ -0,0 +1,12 @@ +{{template "header.tmpl" .HeaderData}} +{{template "navigation.tmpl" .NavbarData}} +
Followers
+ +{{template "userlist.tmpl" .Users}} + + +{{template "footer.tmpl"}} diff --git a/templates/following.tmpl b/templates/following.tmpl new file mode 100644 index 0000000..b1d8499 --- /dev/null +++ b/templates/following.tmpl @@ -0,0 +1,12 @@ +{{template "header.tmpl" .HeaderData}} +{{template "navigation.tmpl" .NavbarData}} +
Following
+ +{{template "userlist.tmpl" .Users}} + + +{{template "footer.tmpl"}} diff --git a/templates/user.tmpl b/templates/user.tmpl index fa19338..0c134af 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -36,7 +36,9 @@ {{end}}
- {{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers + {{.User.StatusesCount}} statuses - + {{.User.FollowingCount}} following - + {{.User.FollowersCount}} followers
-- cgit v1.2.3