Add user menu with profile page, card and row hovers, and family breadcrumb fixes
This commit is contained in:
@@ -31,6 +31,7 @@ func Register(mux *http.ServeMux, cache *Cache) {
|
||||
for _, section := range sections {
|
||||
mux.HandleFunc("GET /"+section, a.page)
|
||||
}
|
||||
mux.HandleFunc("GET /profile", a.page)
|
||||
mux.HandleFunc("GET /people/{email}", a.page)
|
||||
mux.HandleFunc("GET /families/{key}", a.page)
|
||||
mux.HandleFunc("GET /classrooms/{name}", a.page)
|
||||
@@ -58,6 +59,7 @@ func (a app) page(w http.ResponseWriter, r *http.Request) {
|
||||
data := map[string]string{
|
||||
"UserName": name,
|
||||
"UserInitial": strings.ToUpper(name[:1]),
|
||||
"UserEmail": auth.Email(r),
|
||||
}
|
||||
if err := t.Execute(w, data); err != nil {
|
||||
log.Printf("[ERROR] render directory page: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user