package templates import "dealroom/internal/model" import "fmt" import "strings" templ ContactsPage(profile *model.Profile, contacts []*model.Contact) { @Layout(profile, "contacts") {
{ fmt.Sprintf("%d contacts", len(contacts)) } across all deal rooms.
| Name | Company | Type | Tags | |
|---|---|---|---|---|
|
{ contactInitials(contact.FullName) }
{ contact.FullName }
{ contact.Title } |
{ contact.Company } | { contact.Email } | @ContactTypeBadge(contact.ContactType) |
for _, tag := range splitTags(contact.Tags) {
if tag != "" {
{ tag }
}
}
|