messages.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends 'base.html' %}
  2. {% block header %}
  3. <h1>Messages for {{ area }} </h1>
  4. {% endblock %}
  5. {% block content %}
  6. <div class="small-10 medium-12 large-12 cell">
  7. <div class="grid-x">
  8. <div class="small-10 medium-12 large-12 cell">
  9. <a href="{{ url_for('list_bases') }}">Back to Message Base Areas</a>
  10. </div>
  11. <div class="small-10 medium-12 large-12 cell">
  12. {{ pagination.info }}
  13. </div>
  14. <div class="small-10 medium-12 large-12 cell">
  15. {{ pagination.links }}
  16. </div>
  17. </div>
  18. <div class="grid-x padding-x">
  19. <div class="small-2 medium-1 large-1 cell head">Msg #</div>
  20. <div class="hide-for-small-only medium-3 large-2 cell head">Written</div>
  21. <div class="small-2 medium-2 large-2 cell head">From</div>
  22. <div class="small-2 medium-2 large-2 cell head">To</div>
  23. <div class="small-4 medium-4 large-5 cell head">Subject</div>
  24. </div>
  25. {% for msg in messages %}
  26. <div class="grid-x padding-x">
  27. <div class="small-2 medium-1 large-1 cell"><a href="{{ url_for('display_message', area=area, msgno=msg.MsgNum) }}">{{ msg.MsgNum }}</a></div>
  28. <div class="hide-for-small-only medium-3 large-2 cell">{{ msg.written|datefmt }}</div>
  29. <div class="small-2 medium-2 large-2 cell">{{ msg.from }}</div>
  30. <div class="small-2 medium-2 large-2 cell">{{ msg.to }}</div>
  31. <div class="small-4 medium-4 large-5 cell"><a href="{{ url_for('display_message', area=area, msgno=msg.MsgNum) }}">{{ msg.subject }}</a></div>
  32. </div>
  33. {% endfor %}
  34. <div class="small-10 medium-12 large-12 cell">
  35. {{ pagination.links }}
  36. </div>
  37. </div>
  38. {% endblock %}