message.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends 'base.html' %}
  2. {% block header %}
  3. <h1>Messages for {{ area }} </h1>
  4. <a href="{{ url_for('display_messages', area=area) }}">Back to {{ area }}</a>
  5. {% endblock %}
  6. {% block content %}
  7. <div class="small-12 medium-12 large-12 cell">
  8. <div class="grid-x padding-x">
  9. <div class="small-2 medium-2 large-2 cell">{% if prevmsg is not none %}
  10. <a class="button" href="{{ url_for('display_message', area=area, msgno=prevmsg) }}">Previous</a>{% endif %}</div>
  11. <div class="small-2 medium-2 large-2 cell">{% if nextmsg is not none %}
  12. <a class="button" href="{{ url_for('display_message', area=area, msgno=nextmsg) }}">Next</a>{% endif %}</div>
  13. </div>
  14. <div class="grid-x padding-x">
  15. <div class="small-2 medium-2 large-2 cell">Message #:</div>
  16. <div class="small-10 medium-10 large-10 cell">{{ message.MsgNum }}</div>
  17. </div>
  18. <div class="grid-x padding-x">
  19. <div class="small-2 medium-2 large-2 cell">Date:</div>
  20. <div class="small-10 medium-10 large-10 cell">{{ message.written|datefmt }}</div>
  21. </div>
  22. <div class="grid-x padding-x">
  23. <div class="small-2 medium-2 large-2 cell">From:</div>
  24. <div class="small-10 medium-10 large-10 cell">{{ message.from }}</div>
  25. </div>
  26. <div class="grid-x padding-x">
  27. <div class="small-2 medium-2 large-2 cell">To:</div>
  28. <div class="small-10 medium-10 large-10 cell">{{ message.to }}</div>
  29. </div>
  30. <div class="grid-x padding-x">
  31. <div class="small-2 medium-2 large-2 cell">Subject:</div>
  32. <div class="small-10 medium-10 large-10 cell">{{ message.subject }}</div>
  33. </div>
  34. <div class="grid-x padding-x">
  35. <div class="small-12 medium-2 large-2 cell">Text:</div>
  36. <div class="small-12 medium-10 large-10 cell">{% if message.png is defined %}
  37. <img alt="Message {{ message.MsgNum }}" src="{{ url_for('display_ansi', area=area, msgno=message.MsgNum ) }}">{% else %}
  38. <pre class="oldstyle">{{ message.text }}</pre>{% endif %}
  39. </div>
  40. </div>
  41. </div>
  42. {% endblock %}