aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go22
-rw-r--r--renderer/renderer.go1
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 {