func (ctl *LogfileController) getAddLogfileAction(c *gin.Context) { appId := c.Param("app_id") application := ctl.getApplication(c, appId) if application == nil { return } var form models.ConfigCreateForm form.Notify = "restart:" + application.Name form.Enabled = true c.HTML(http.StatusOK, "logfile_add.html", map[string]interface{}{ "application": application, "form": form, }) }