diff options
author | r <r@freesoftwareextremist.com> | 2022-02-11 11:18:02 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2022-02-11 11:49:23 +0000 |
commit | c390a0c32720f6afe852bc7a3a3f64c3afe9e401 (patch) | |
tree | 57ac4a30f8fe45edf0369eaa4c5609ffb74315eb /renderer | |
parent | c2f237e9019a4fb31cd7d969bf59670c144592c8 (diff) | |
download | bloat-c390a0c32720f6afe852bc7a3a3f64c3afe9e401.tar.gz bloat-c390a0c32720f6afe852bc7a3a3f64c3afe9e401.zip |
Add lists
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/model.go | 13 | ||||
-rw-r--r-- | renderer/renderer.go | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/renderer/model.go b/renderer/model.go index 4d09338..e7cfbfb 100644 --- a/renderer/model.go +++ b/renderer/model.go @@ -62,6 +62,19 @@ type TimelineData struct { PrevLink string } +type ListsData struct { + *CommonData + Lists []*mastodon.List +} + +type ListData struct { + *CommonData + List *mastodon.List + Accounts []*mastodon.Account + Q string + SearchAccounts []*mastodon.Account +} + type ThreadData struct { *CommonData Statuses []*mastodon.Status diff --git a/renderer/renderer.go b/renderer/renderer.go index 0d6776c..20a3c05 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -19,6 +19,8 @@ const ( NavPage = "nav.tmpl" RootPage = "root.tmpl" TimelinePage = "timeline.tmpl" + ListsPage = "lists.tmpl" + ListPage = "list.tmpl" ThreadPage = "thread.tmpl" QuickReplyPage = "quickreply.tmpl" NotificationPage = "notification.tmpl" |