mirror of https://github.com/hrfee/jfa-go
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
545 B
20 lines
545 B
package main
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func (ctx *appContext) AdminPage(gc *gin.Context) {
|
|
bs5, _ := ctx.config.Section("ui").Key("bs5").Bool()
|
|
emailEnabled, _ := ctx.config.Section("invite_emails").Key("enabled").Bool()
|
|
notificationsEnabled, _ := ctx.config.Section("notifications").Key("enabled").Bool()
|
|
gc.HTML(http.StatusOK, "admin.html", gin.H{
|
|
"bs5": bs5,
|
|
"cssFile": ctx.cssFile,
|
|
"contactMessage": "",
|
|
"email_enabled": emailEnabled,
|
|
"notifications": notificationsEnabled,
|
|
})
|
|
}
|