Exemple #1
0
func (This *LogController) LogStatsByType(c *gin.Context) {
	token := c.Query("token")

	if token == "" {
		c.Redirect(http.StatusMovedPermanently, "/log/token")
	}

	util.RenderTemplate(c.Writer, "log/statsByType", map[string]string{"ContainerClass": "container-fluid", "WrapClass": "wrap-log", "FooterClass": "no-footer", "ShowLogMenu": "1"})
}
Exemple #2
0
func (This *LogController) LogToken(c *gin.Context) {
	util.RenderTemplate(c.Writer, "log/token", nil)
}
Exemple #3
0
func (This *HomeController) HomeIndex(c *gin.Context) {
	util.RenderTemplate(c.Writer, "home/index", nil)
}