(app *App, u *User, w http.ResponseWriter, r *http.Request)
| 168 | } |
| 169 | |
| 170 | func handleViewAdminSettings(app *App, u *User, w http.ResponseWriter, r *http.Request) error { |
| 171 | p := struct { |
| 172 | *UserPage |
| 173 | *AdminPage |
| 174 | Config config.AppCfg |
| 175 | |
| 176 | Message, ConfigMessage string |
| 177 | }{ |
| 178 | UserPage: NewUserPage(app, r, u, "Admin", nil), |
| 179 | AdminPage: NewAdminPage(app), |
| 180 | Config: app.cfg.App, |
| 181 | |
| 182 | Message: r.FormValue("m"), |
| 183 | ConfigMessage: r.FormValue("cm"), |
| 184 | } |
| 185 | |
| 186 | showUserPage(w, "app-settings", p) |
| 187 | return nil |
| 188 | } |
| 189 | |
| 190 | func handleViewAdminUsers(app *App, u *User, w http.ResponseWriter, r *http.Request) error { |
| 191 | p := struct { |
nothing calls this directly
no test coverage detected