Load profiles last notes asynchronously

This commit is contained in:
Daniele Tonon
2023-12-20 07:50:17 +01:00
parent c3c9e3d08d
commit 6a2ff72985
6 changed files with 84 additions and 40 deletions

View File

@@ -289,6 +289,18 @@ type ProfilePage struct {
func (*ProfilePage) TemplateText() string { return tmplProfile }
var (
//go:embed templates/_last_notes.html
tmplLastNotes string
LastNotesTemplate = tmpl.MustCompile(&LastNotesPage{})
)
type LastNotesPage struct {
LastNotes []EnhancedEvent
}
func (*LastNotesPage) TemplateText() string { return tmplLastNotes }
var (
//go:embed templates/embedded_profile.html
tmplEmbeddedProfile string