Merge branch 'fix/missing-support-link'
This commit is contained in:
commit
c28c3a22e0
1 changed files with 20 additions and 5 deletions
|
|
@ -94,11 +94,26 @@ templ Space(title string, space *model.Space) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@sidebar.Footer() {
|
@sidebar.Footer() {
|
||||||
// Re-using the same dropdown from app layout
|
@sidebar.Menu() {
|
||||||
{{ user := ctxkeys.User(ctx) }}
|
@sidebar.MenuItem() {
|
||||||
{{ profile := ctxkeys.Profile(ctx) }}
|
@sidebar.MenuButton(sidebar.MenuButtonProps{
|
||||||
if user != nil && profile != nil {
|
Href: "mailto:" + cfg.SupportEmail,
|
||||||
@AppSidebarDropdown(user, profile)
|
Size: sidebar.MenuButtonSizeSm,
|
||||||
|
}) {
|
||||||
|
@icon.MessageCircleQuestionMark(icon.Props{Class: "size-4"})
|
||||||
|
<span>Support</span>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@sidebar.Separator()
|
||||||
|
@sidebar.Menu() {
|
||||||
|
@sidebar.MenuItem() {
|
||||||
|
{{ user := ctxkeys.User(ctx) }}
|
||||||
|
{{ profile := ctxkeys.Profile(ctx) }}
|
||||||
|
if user != nil && profile != nil {
|
||||||
|
@AppSidebarDropdown(user, profile)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue