A webmail client. Forked from https://git.sr.ht/~migadu/alps
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.4 KiB

  1. {{template "head.html" .}}
  2. {{template "nav.html" .}}
  3. <div class="page-wrap">
  4. <aside>
  5. <a href="/contacts/create" class="new">New contact</a>
  6. <!-- TODO: fetch list of address books -->
  7. <a href="#" class="active">{{.AddressBook.Name}}</a>
  8. <a href="#">Personal</a>
  9. </aside>
  10. <div class="container">
  11. <form id="address-book-form" method="post"></form>
  12. <main class="contact-list">
  13. <section class="actions">
  14. {{ template "contacts-header.html" . }}
  15. </section>
  16. <section class="contacts">
  17. <div class="contact-grid">
  18. {{range .AddressObjects}}
  19. <div class="contact-list-checkbox">
  20. <input type="checkbox" name="paths" value="{{.Path}}" form="address-book-form">
  21. </div>
  22. <div class="contact-list-name">
  23. <a href="{{.URL}}">
  24. {{.Card.Value "FN"}}
  25. </a>
  26. </div>
  27. <div class="contact-list-email">
  28. {{$email := .Card.PreferredValue "EMAIL"}}
  29. {{if $email}}
  30. <a href="/compose?to={{$email}}">{{$email}}</a>
  31. {{end}}
  32. </div>
  33. {{end}}
  34. {{if not .AddressObjects}}
  35. <p class="empty-list">Nothing here yet.</p>
  36. {{end}}
  37. </div>
  38. </section>
  39. <section class="actions">
  40. {{ template "contacts-header.html" . }}
  41. </section>
  42. </main>
  43. </div>
  44. </div>
  45. {{template "foot.html"}}