mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-03 18:38:46 +00:00
Add userinfo in navigation
This commit is contained in:
parent
16300c93c1
commit
a24d87ad20
4 changed files with 61 additions and 15 deletions
|
@ -6,12 +6,14 @@ import (
|
|||
)
|
||||
|
||||
type NavbarTemplateData struct {
|
||||
User *mastodon.Account
|
||||
NotificationCount int
|
||||
}
|
||||
|
||||
func NewNavbarTemplateData(notificationCount int) *NavbarTemplateData {
|
||||
func NewNavbarTemplateData(notificationCount int, user *mastodon.Account) *NavbarTemplateData {
|
||||
return &NavbarTemplateData{
|
||||
NotificationCount: notificationCount,
|
||||
User: user,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue