Remove account link from account page

This commit is contained in:
Teajey 2025-12-08 01:16:38 +09:00
parent 2291a338e6
commit b9d1d1c1e1
Signed by: Teajey
GPG Key ID: 970E790FE834A713
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ func (p *AccountProps) Validate() (valid bool) {
func NewAccountProps(username string, passwordFromAdmin bool, passwordVal, confirmPassVal string) *AccountProps {
return &AccountProps{
Navbar: templates.UserNavCollapse(username, false),
Navbar: templates.NavCollapse{
Links: []templates.Link{{Href: "/", Name: "Home"}},
User: &templates.User{Name: username},
},
PasswordFromAdmin: passwordFromAdmin,
Password: templates.InputProps{
Type: "password",