diff options
author | r <r@freesoftwareextremist.com> | 2021-05-30 09:13:47 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-05-30 09:13:47 +0000 |
commit | 4ab53547a81aa954b694fbde292c14bd2d04b76c (patch) | |
tree | 4ed7280db468abc4b9a05bf05d5d32776772342a /renderer | |
parent | 9f34b607498c09b4a21bdcc82b3295f6c94bd058 (diff) | |
parent | 44d4b0d379ddfe004bff710c5c3cb44692500ad4 (diff) | |
download | bloat-4ab53547a81aa954b694fbde292c14bd2d04b76c.tar.gz bloat-4ab53547a81aa954b694fbde292c14bd2d04b76c.zip |
Merge branch 'master' into absolute_fluoride
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/model.go | 22 | ||||
-rw-r--r-- | renderer/renderer.go | 1 |
2 files changed, 16 insertions, 7 deletions
diff --git a/renderer/model.go b/renderer/model.go index 93cbbc6..4d3eea0 100644 --- a/renderer/model.go +++ b/renderer/model.go @@ -14,15 +14,10 @@ type Context struct { CSRFToken string UserID string AntiDopamineMode bool + UserCSS string Referrer string } -type NavData struct { - CommonData *CommonData - User *mastodon.Account - PostContext model.PostContext -} - type CommonData struct { Title string CustomCSS string @@ -32,9 +27,17 @@ type CommonData struct { Target string } +type NavData struct { + CommonData *CommonData + User *mastodon.Account + PostContext model.PostContext +} + type ErrorData struct { *CommonData - Error string + Err string + Retry bool + SessionErr bool } type HomePageData struct { @@ -132,3 +135,8 @@ type SettingsData struct { Settings *model.Settings PostFormats []model.PostFormat } + +type FiltersData struct { + *CommonData + Filters []*mastodon.Filter +} diff --git a/renderer/renderer.go b/renderer/renderer.go index 724178e..340b0fc 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -30,6 +30,7 @@ const ( RetweetedByPage = "retweetedby.tmpl" SearchPage = "search.tmpl" SettingsPage = "settings.tmpl" + FiltersPage = "filters.tmpl" ) type TemplateData struct { |