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.
 
 
 
 

53 lines
1.8 KiB

  1. <div class="message-list-checkbox">
  2. <input type="checkbox" id="action-checkbox-all" style="display: none"/>
  3. </div>
  4. <div class="actions-wrap">
  5. <div class="actions-message">
  6. <div class="action-group">
  7. {{ if and (eq .Mailbox.Name "INBOX") (not (eq .Mailbox.Name "Archive")) }}
  8. <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Archive">Archive</button>
  9. {{ end }}
  10. </div>
  11. <div class="action-group">
  12. {{ if or (eq .Mailbox.Name "INBOX") (eq .Mailbox.Name "Trash") }}
  13. <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Junk">Report Spam</button>
  14. {{ end }}
  15. </div>
  16. <div class="action-group">
  17. {{ if ne .Mailbox.Name "Trash"}}
  18. <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Trash">Delete</button>
  19. {{ else }}
  20. <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/delete">Delete Permanently</button>
  21. {{ end }}
  22. </div>
  23. <div class="action-group">
  24. <a href="{{ .GlobalData.URL.String }}" class="button-link">Refresh</a>
  25. </div>
  26. <div class="action-group">
  27. {{ if not (eq .Mailbox.Name "INBOX") }}
  28. <a class="button-link" href="/delete-mailbox/{{.Mailbox.Name | pathescape}}">Delete folder</a>
  29. {{ end }}
  30. </div>
  31. </div>
  32. <form method="get" class="actions-search">
  33. <input type="text" name="query" value="{{.Query}}" placeholder="Search messages...">
  34. <button>Search</button>
  35. </form>
  36. {{if or (ge .PrevPage 0) (ge .NextPage 0) }}
  37. <div class="actions-pagination">
  38. {{if ge .PrevPage 0}}
  39. <a href="?page={{.PrevPage}}" class="button-link">«</a>
  40. {{end}}
  41. {{if ge .NextPage 0}}
  42. <a href="?page={{.NextPage}}" class="button-link">»</a>
  43. {{end}}
  44. </div>
  45. {{ end }}
  46. </div>