mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Load profiles last notes asynchronously
This commit is contained in:
12
pages.go
12
pages.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user