separaded endpoints + cleaned page templates + added constants to time formatting
Some checks failed
Tests / Run Go Tests (push) Failing after 1m34s
Some checks failed
Tests / Run Go Tests (push) Failing after 1m34s
This commit is contained in:
@@ -43,5 +43,5 @@ func showUserPage(w http.ResponseWriter, r *http.Request, status int) {
|
||||
if user, err := models.GetUserFromSession(Session, r.Context()); err == nil {
|
||||
ctx = context.WithValue(r.Context(), "user", user)
|
||||
}
|
||||
templates.UserPage(status).Render(ctx, w)
|
||||
templates.SettingsPage(status).Render(ctx, w)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user