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.

50 lines
1.1 KiB

  1. ::use 'admin/design.mtt'::
  2. <div class="span12">
  3. <div class="article">
  4. <h1>Emails</h1>
  5. <p>::_("Emails are temporarily stored in a buffer, waiting to be sent by the cron")::</p>
  6. <p>
  7. <h3>::num:: unsent emails</h3>
  8. </p>
  9. ::set url = "/admin/emails"::
  10. $$browse(::browser::,::url::)
  11. <table class="table table-bordered table-striped table-condensed table-hover">
  12. <tr>
  13. <th>id</th>
  14. <th>date</th>
  15. <th>tries</th>
  16. <th>title</th>
  17. <th>html</th>
  18. <th>status</th>
  19. </tr>
  20. <tr ::repeat e browser.current()::>
  21. <td>::e.id::</td>
  22. <td>::e.cdate::</td>
  23. ::if(e.tries==0)::
  24. <td class="warning">::e.tries::</td>
  25. ::else::
  26. <td class="danger">::e.tries::</td>
  27. ::end::
  28. <td>::e.title::</td>
  29. <td>
  30. ::if e.htmlBody != null::
  31. <a href="#" onclick="$(this).next().toggle(); return false;">[show]</a>
  32. <div style="display:none;">
  33. ::raw e.htmlBody::
  34. </div>
  35. ::end::
  36. </td>
  37. <td>::e.rawStatus::</td>
  38. </tr>
  39. </table>
  40. $$browse(::browser::,::url::)
  41. </div>
  42. </div>
  43. ::end::