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