evol: mise à jour renderers bénéficiaires et covoiturage

This commit is contained in:
Arnaud Delcasse
2026-02-25 17:51:53 +01:00
parent 549ea35a8c
commit 8d89306a90
3 changed files with 20 additions and 16 deletions

View File

@@ -105,11 +105,12 @@ func (r *Renderer) templateFile(file string) string {
type RenderState struct {
icons.IconSet
LayoutState
UserID string
UserClaims map[string]any
Group storage.Group
Roles any
ViewState any // This is a state specific to a given view
UserID string
UserClaims map[string]any
Group storage.Group
Roles any
ViewState any // This is a state specific to a given view
DynamicData any // Data to be serialized as JSON in a <script> tag for safe JS consumption
}
func NewState(r *http.Request, themeConfig *viper.Viper, menuState string) RenderState {