diff options
author | r <r@freesoftwareextremist.com> | 2019-12-29 03:43:57 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-29 03:43:57 +0000 |
commit | 72dbe50341179d345f8cbd1bf5a97809037db364 (patch) | |
tree | e11659a1178179ccbe7e88b794b280cb225746a2 /templates | |
parent | b9d7eb05beb57926181f91685a75b3069d1f8cf8 (diff) | |
download | bloat-72dbe50341179d345f8cbd1bf5a97809037db364.tar.gz bloat-72dbe50341179d345f8cbd1bf5a97809037db364.zip |
Add following and followers page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/followers.tmpl | 12 | ||||
-rw-r--r-- | templates/following.tmpl | 12 | ||||
-rw-r--r-- | templates/user.tmpl | 4 |
3 files changed, 27 insertions, 1 deletions
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}} +<div class="page-title"> Followers </div> + +{{template "userlist.tmpl" .Users}} +<div class="pagination"> + {{if .HasNext}} + <a href="{{.NextLink}}">next</a> + {{end}} +</div> + +{{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}} +<div class="page-title"> Following </div> + +{{template "userlist.tmpl" .Users}} +<div class="pagination"> + {{if .HasNext}} + <a href="{{.NextLink}}">next</a> + {{end}} +</div> + +{{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}} </div> <div> - {{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers + {{.User.StatusesCount}} statuses - + <a href="/following/{{.User.ID}}"> {{.User.FollowingCount}} following </a> - + <a href="/followers/{{.User.ID}}"> {{.User.FollowersCount}} followers </a> </div> </div> <div class="user-profile-decription"> |