message.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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">Message #:</div>
  10. <div class="small-10 medium-10 large-10 cell">{{ message.MsgNum }}</div>
  11. </div>
  12. <div class="grid-x padding-x">
  13. <div class="small-2 medium-2 large-2 cell">Date:</div>
  14. <div class="small-10 medium-10 large-10 cell">{{ message.written|datefmt }}</div>
  15. </div>
  16. <div class="grid-x padding-x">
  17. <div class="small-2 medium-2 large-2 cell">From:</div>
  18. <div class="small-10 medium-10 large-10 cell">{{ message.from }}</div>
  19. </div>
  20. <div class="grid-x padding-x">
  21. <div class="small-2 medium-2 large-2 cell">To:</div>
  22. <div class="small-10 medium-10 large-10 cell">{{ message.to }}</div>
  23. </div>
  24. <div class="grid-x padding-x">
  25. <div class="small-2 medium-2 large-2 cell">Subject:</div>
  26. <div class="small-10 medium-10 large-10 cell">{{ message.subject }}</div>
  27. </div>
  28. <div class="grid-x padding-x">
  29. <div class="small-12 medium-2 large-2 cell">Text:</div>
  30. <div class="small-12 medium-10 large-10 cell">{% if message.png is defined %}
  31. <img alt="Message {{ message.MsgNum }}" src="{{ url_for('display_ansi', area=area, msgno=message.MsgNum ) }}">{% else %}
  32. <pre class="oldstyle">{{ message.text }}</pre>{% endif %}
  33. </div>
  34. </div>
  35. </div>
  36. {% endblock %}