feat: logout route and button

This commit is contained in:
efim
2023-11-14 04:18:25 +00:00
parent 1297fcf35d
commit 83e81ec011
9 changed files with 130 additions and 22 deletions

View File

@@ -207,15 +207,15 @@ func roomPageRoute(
for gesture := rooms.ChangeTopic; gesture <= rooms.Meta; gesture++ {
gesturesData = append(gesturesData, GestureData{
Name: gesture.String(),
Url: fmt.Sprintf("%s%d", raiseHandPath, gesture),
Url: fmt.Sprintf("%s%d", raiseHandPath, gesture),
})
}
contentData := struct {
Room rooms.Room
Room rooms.Room
Gestures []GestureData
}{
Room: room,
Room: room,
Gestures: gesturesData,
}
data := pageData{
@@ -223,6 +223,9 @@ func roomPageRoute(
Title: "room-lala-from-base",
},
Content: contentData,
Header: headerData{
Title: room.Name,
},
}
err = tmpl.ExecuteTemplate(w, "full-page", data)