(w http.ResponseWriter, r *http.Request, message string, success bool)
| 619 | } |
| 620 | |
| 621 | func (s *Server) renderSettingsWithMessage(w http.ResponseWriter, r *http.Request, message string, success bool) { |
| 622 | data := map[string]interface{}{ |
| 623 | "Title": "Settings", |
| 624 | "Config": s.config, |
| 625 | "InboxMessage": message, |
| 626 | "InboxSuccess": success, |
| 627 | } |
| 628 | s.renderWithCSRF(w, r, "settings.html", data) |
| 629 | } |
| 630 | |
| 631 | // API handlers |
| 632 |
no test coverage detected