Add full-calc
This commit is contained in:
6
pages.go
6
pages.go
@@ -10,8 +10,14 @@ import (
|
||||
)
|
||||
|
||||
func mainPage(c *gin.Context) {
|
||||
username, ok := session.GetUsername(c)
|
||||
if !ok {
|
||||
username = ""
|
||||
}
|
||||
|
||||
data := map[string]interface{}{
|
||||
"UserRole": controllers.GetUserRoleByCtx(c),
|
||||
"Username": username,
|
||||
}
|
||||
|
||||
err := utils.MainPageTemplates.Execute(c.Writer, data)
|
||||
|
||||
Reference in New Issue
Block a user