aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/followers.tmpl12
-rw-r--r--templates/following.tmpl12
-rw-r--r--templates/user.tmpl4
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">