Merge branch 'master' into absolute_fluoride

This commit is contained in:
r 2021-05-30 09:13:47 +00:00
commit 4ab53547a8
26 changed files with 685 additions and 477 deletions

View file

@ -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
}

View file

@ -30,6 +30,7 @@ const (
RetweetedByPage = "retweetedby.tmpl"
SearchPage = "search.tmpl"
SettingsPage = "settings.tmpl"
FiltersPage = "filters.tmpl"
)
type TemplateData struct {