Add full-calc

This commit is contained in:
MaxJa4
2024-01-22 12:42:11 +01:00
parent 938e4ef348
commit 6441aa9f81
5 changed files with 346 additions and 11 deletions

View File

@@ -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)