aboutsummaryrefslogtreecommitdiffstats
path: root/renderer.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Drew DeVault <[email protected]> 2020-11-19 11:17:40 -0500
committerLibravatarLibravatar Drew DeVault <[email protected]> 2020-11-19 11:17:40 -0500
commitcb37df882edc51ed47f4b353ce42eabd80416b19 (patch)
tree42b060f231d5d976626f6a04b9e3160f974066f0 /renderer.go
parent405c18d21388f1cc6f8b7349186efb3fa44eef87 (diff)
downloadalps-cb37df882edc51ed47f4b353ce42eabd80416b19.tar.gz
alps-cb37df882edc51ed47f4b353ce42eabd80416b19.tar.bz2
alps-cb37df882edc51ed47f4b353ce42eabd80416b19.zip
Add notices on action completion
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{