Formatting
This commit is contained in:
@@ -86,16 +86,14 @@ func (h *AccountMessageHandlers) SendPost(c *gin.Context) {
|
|||||||
ctx["Error"] = "Could not send message."
|
ctx["Error"] = "Could not send message."
|
||||||
ctx["Form"] = in
|
ctx["Form"] = in
|
||||||
|
|
||||||
tmpl := templateHelpers.LoadTemplateFiles(
|
tmpl := templateHelpers.LoadTemplateFiles("layout.html", "web/templates/account/messages/send.html")
|
||||||
"layout.html",
|
|
||||||
"web/templates/account/messages/send.html",
|
|
||||||
)
|
|
||||||
|
|
||||||
c.Status(http.StatusInternalServerError)
|
c.Status(http.StatusInternalServerError)
|
||||||
if err := tmpl.ExecuteTemplate(c.Writer, "layout", ctx); err != nil {
|
if err := tmpl.ExecuteTemplate(c.Writer, "layout", ctx); err != nil {
|
||||||
logging.Info("❌ Template render error: %v", err)
|
logging.Info("❌ Template render error: %v", err)
|
||||||
c.String(http.StatusInternalServerError, "Error rendering send message page")
|
c.String(http.StatusInternalServerError, "Error rendering send message page")
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user