package templates import "gitgud/internal/domain" templ Layout(title string, user *domain.User) { { title }
if flashOf(ctx) != "" {
{ flashOf(ctx) }
}
{ children... }
} templ csrfField() { } // gitLogo renders the gitgud branch-network mark. Color is inherited via currentColor. templ gitLogo(class string) { } // avatar renders a deterministic gradient avatar with the user's initial. templ avatar(name, class string) { { initial(name) } }