aboutsummaryrefslogtreecommitdiff
path: root/renderer.go
diff options
context:
space:
mode:
Diffstat (limited to 'renderer.go')
-rw-r--r--renderer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/renderer.go b/renderer.go
index 1123b0b..d8ea325 100644
--- a/renderer.go
+++ b/renderer.go
@@ -28,6 +28,8 @@ type GlobalRenderData struct {
HavePlugin func(name string) bool
+ Notice string
+
// additional plugin-specific data
Extra map[string]interface{}
}
@@ -95,6 +97,7 @@ func NewBaseRenderData(ectx echo.Context) *BaseRenderData {
if isactx && ctx.Session != nil {
global.LoggedIn = true
global.Username = ctx.Session.username
+ global.Notice = ctx.Session.PopNotice()
}
return &BaseRenderData{