mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-05 11:28:45 +00:00
Add userinfo in navigation
This commit is contained in:
parent
16300c93c1
commit
a24d87ad20
4 changed files with 61 additions and 15 deletions
|
@ -478,7 +478,12 @@ func (svc *service) getNavbarTemplateData(ctx context.Context, client io.Writer,
|
|||
}
|
||||
}
|
||||
|
||||
data = renderer.NewNavbarTemplateData(notificationCount)
|
||||
u, err := c.GetAccountCurrentUser(ctx)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
data = renderer.NewNavbarTemplateData(notificationCount, u)
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue