message.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends 'base.html' %}
  2. {% block header %}
  3. <h1>Messages for {{ area }} </h1>
  4. {% endblock %}
  5. {% block content %}
  6. <div class="large-12 cell">
  7. <div class="grid-x padding-x">
  8. <div class="large-2 cell">Message #:</div>
  9. <div class="large-10 cell">{{ message.MsgNum }}</div>
  10. </div>
  11. <div class="grid-x padding-x">
  12. <div class="large-2 cell">Date:</div>
  13. <div class="large-10 cell">{{ message.written|datefmt }}</div>
  14. </div>
  15. <div class="grid-x padding-x">
  16. <div class="large-2 cell">From:</div>
  17. <div class="large-10 cell">{{ message.from }}</div>
  18. </div>
  19. <div class="grid-x padding-x">
  20. <div class="large-2 cell">To:</div>
  21. <div class="large-10 cell">{{ message.to }}</div>
  22. </div>
  23. <div class="grid-x padding-x">
  24. <div class="large-2 cell">Subject:</div>
  25. <div class="large-10 cell">{{ message.subject }}</div>
  26. </div>
  27. <div class="grid-x padding-x">
  28. <div class="large-2 cell">Text:</div>
  29. <div class="large-10 cell">{% if message.png is defined %}<img alt="Message {{ message.MsgNum }}" src="data:image/png;base64,{{ message.png|safe }}">{% else %}<pre>{{ message.text|safe }}</pre>{% endif %}</div>
  30. </div>
  31. </div>
  32. {% endblock %}