support code emailing
This commit is contained in:
19
renderer/support.go
Normal file
19
renderer/support.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package renderer
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
const commentMenu = "comment"
|
||||
const commentsend = "sendComment"
|
||||
|
||||
func (renderer *Renderer) SupportSend(w http.ResponseWriter, r *http.Request, comment any, admins any) {
|
||||
|
||||
files := renderer.ThemeConfig.GetStringSlice("views.support.search.files")
|
||||
state := NewState(r, renderer.ThemeConfig, commentMenu)
|
||||
state.ViewState = map[string]any{
|
||||
"comment": comment,
|
||||
"admins": admins,
|
||||
}
|
||||
renderer.Render("comment", w, r, files, state)
|
||||
}
|
||||
Reference in New Issue
Block a user