From a1f49af1d93bccdd56d4538b149884418bd2ca2c Mon Sep 17 00:00:00 2001 From: r Date: Fri, 20 Dec 2019 18:30:20 +0000 Subject: Add user page and follow/unfollow calls --- templates/notification.tmpl | 12 +++++++--- templates/status.tmpl | 12 +++++++--- templates/user.tmpl | 54 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 templates/user.tmpl (limited to 'templates') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 099f17e..da6164b 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -6,7 +6,9 @@
{{if eq .Type "follow"}}
- profile-avatar + + profile-avatar +
{{WithEmojis .Account.DisplayName .Account.Emojis}} @@ -24,7 +26,9 @@ {{else if eq .Type "reblog"}}
- profile-avatar + + profile-avatar +
{{WithEmojis .Account.DisplayName .Account.Emojis}} @@ -37,7 +41,9 @@ {{else if eq .Type "favourite"}}
- profile-avatar + + profile-avatar +
{{WithEmojis .Account.DisplayName .Account.Emojis}} diff --git a/templates/status.tmpl b/templates/status.tmpl index 4dbbe3c..618398f 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -1,7 +1,9 @@
{{if .Reblog}}
- profile-avatar + + profile-avatar + {{WithEmojis .Account.DisplayName .Account.Emojis}} retweeted @@ -12,14 +14,18 @@
{{if not .HideAccountInfo}} - profile-avatar + + profile-avatar + {{end}}
{{if not .HideAccountInfo}}
{{WithEmojis .Account.DisplayName .Account.Emojis}} - {{.Account.Acct}} + + {{.Account.Acct}} +
{{end}}
diff --git a/templates/user.tmpl b/templates/user.tmpl new file mode 100644 index 0000000..3347f92 --- /dev/null +++ b/templates/user.tmpl @@ -0,0 +1,54 @@ +{{template "header.tmpl"}} +{{template "navigation.tmpl" .NavbarData}} +
User
+ + + +{{range .Statuses}} +{{template "status.tmpl" .}} +{{end}} + + + +{{template "footer.tmpl"}} + -- cgit v1.2.3