1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

Display message cap on status page

This commit is contained in:
James Hillyerd
2016-03-06 10:15:10 -08:00
parent e99baf766b
commit 3481a89533
3 changed files with 24 additions and 13 deletions

View File

@@ -32,13 +32,13 @@ func RootStatus(w http.ResponseWriter, req *http.Request, ctx *httpd.Context) (e
webListener := fmt.Sprintf("%s:%d", config.GetWebConfig().IP4address.String(),
config.GetWebConfig().IP4port)
return httpd.RenderTemplate("root/status.html", w, map[string]interface{}{
"ctx": ctx,
"version": config.Version,
"buildDate": config.BuildDate,
"retentionMinutes": config.GetDataStoreConfig().RetentionMinutes,
"smtpListener": smtpListener,
"pop3Listener": pop3Listener,
"webListener": webListener,
"noStoreDomain": config.GetSMTPConfig().DomainNoStore,
"ctx": ctx,
"version": config.Version,
"buildDate": config.BuildDate,
"smtpListener": smtpListener,
"pop3Listener": pop3Listener,
"webListener": webListener,
"smtpConfig": config.GetSMTPConfig(),
"dataStoreConfig": config.GetDataStoreConfig(),
})
}