details.html 2.1 KB

123456789101112131415161718192021222324252627282930
  1. <div style="height: 100%; width: 100%; display:flex; flex-direction: column;">
  2. <div class="horizontalPaddingBox" style="flex-grow: 0!important;">
  3. <div style="width: 100%; display: flex; flex-direction: row;">
  4. <div class="elidedText" style="display: block; flex: 1 1 auto;">
  5. <span class="primaryText" style="font-size: var(--big-text-size);">{{.Subject}}</span></br></br>
  6. <span class="primaryText"><span class="noselect">From: </span>{{.From}}</span></br>
  7. <span class="secondaryText"><span class="noselect">To: </span>{{.To}}</span></br>
  8. </div>
  9. <img id="readIcon{{.MailId}}" class="iconBtn" style="width: 20px; margin-right: 10px;" onclick="toggleRead('{{.MailId}}');" src="/assets/read.svg"/>
  10. <img id="restoreIcon" class="iconBtn" style="display:{{if .Trash}}block{{else}}none{{end}}; width: 20px; margin-right: 10px;" onclick="restoreMail({{.MailId}}, closeDetails);" src="/assets/restore.svg"/>
  11. <img id="deleteIcon" class="iconBtn" style="width: 20px; margin-right: 10px;" onclick="removeMail({{.MailId}}, closeDetails);" src="/assets/remove.svg"/>
  12. <img class="iconBtn" style="width: 20px; height: 20px; margin-left:10px;" onclick="closeDetails();" src="/assets/back.svg"/>
  13. </div>
  14. {{if len .Attachments}}
  15. <div class="noselect" style="width: 100%; display: flex; flex-direction: row;">
  16. <img id="attachementIcon" style="width: 20px; height: 20px; margin-top: auto; margin-bottom: auto; margin-right: 5px;" src="/assets/attachments.svg"/>
  17. {{range .Attachments}}
  18. <div class="attachment" onclick="downloadAttachment({{.Id}}, {{.FileName}})">{{.FileName}}</div>
  19. {{end}}
  20. </div>
  21. {{end}}
  22. </div>
  23. <div id="mailBody" class="contentArea horizontalPaddingBox">
  24. <div style="position: relative; max-width: 100%; max-height: 100%; width: 100%; height: 100%;">
  25. <div style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: auto;">
  26. <div>{{.Text}}</div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>