From ac4ff88adb9a2526555757f8d4e65c69cafb3788 Mon Sep 17 00:00:00 2001 From: r Date: Thu, 26 Dec 2019 09:11:24 +0000 Subject: Add liked by and retweeted by page --- templates/error.tmpl | 2 +- templates/likedby.tmpl | 7 +++++ templates/retweetedby.tmpl | 7 +++++ templates/status.tmpl | 65 +++++++++++++++++++++++++++------------------- templates/userlist.tmpl | 17 ++++++++++++ 5 files changed, 70 insertions(+), 28 deletions(-) create mode 100644 templates/likedby.tmpl create mode 100644 templates/retweetedby.tmpl create mode 100644 templates/userlist.tmpl (limited to 'templates') diff --git a/templates/error.tmpl b/templates/error.tmpl index 0389cdd..2049665 100644 --- a/templates/error.tmpl +++ b/templates/error.tmpl @@ -1,6 +1,6 @@ {{template "header.tmpl" .HeaderData}}
Error
-
{{.}}
+
{{.Error}}
Home Sign In diff --git a/templates/likedby.tmpl b/templates/likedby.tmpl new file mode 100644 index 0000000..72855e0 --- /dev/null +++ b/templates/likedby.tmpl @@ -0,0 +1,7 @@ +{{template "header.tmpl" .HeaderData}} +{{template "navigation.tmpl" .NavbarData}} +
Liked By
+ +{{template "userlist.tmpl" .Users}} + +{{template "footer.tmpl"}} diff --git a/templates/retweetedby.tmpl b/templates/retweetedby.tmpl new file mode 100644 index 0000000..2d9c539 --- /dev/null +++ b/templates/retweetedby.tmpl @@ -0,0 +1,7 @@ +{{template "header.tmpl" .HeaderData}} +{{template "navigation.tmpl" .NavbarData}} +
Retweeted By
+ +{{template "userlist.tmpl" .Users}} + +{{template "footer.tmpl"}} diff --git a/templates/status.tmpl b/templates/status.tmpl index 6534249..4e975ad 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -85,43 +85,54 @@ {{end}} {{end}}
-
- - - {{DisplayInteractionCount .RepliesCount}} - - {{if or (eq .Visibility "private") (eq .Visibility "direct")}} - - - {{DisplayInteractionCount .ReblogsCount}} - - {{else}} +
diff --git a/templates/userlist.tmpl b/templates/userlist.tmpl new file mode 100644 index 0000000..d52e67d --- /dev/null +++ b/templates/userlist.tmpl @@ -0,0 +1,17 @@ +
+ {{range .}} +
+
+ + avatar + +
+
+
{{EmojiFilter .DisplayName .Emojis}}
+ +
{{.Acct}}
+
+
+
+ {{end}} +
-- cgit v1.2.3