message.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="large-12 cell">
  8. <div class="grid-x padding-x">
  9. <div class="large-2 cell">Message #:</div>
  10. <div class="large-10 cell">{{ message.MsgNum }}</div>
  11. </div>
  12. <div class="grid-x padding-x">
  13. <div class="large-2 cell">Date:</div>
  14. <div class="large-10 cell">{{ message.written|datefmt }}</div>
  15. </div>
  16. <div class="grid-x padding-x">
  17. <div class="large-2 cell">From:</div>
  18. <div class="large-10 cell">{{ message.from }}</div>
  19. </div>
  20. <div class="grid-x padding-x">
  21. <div class="large-2 cell">To:</div>
  22. <div class="large-10 cell">{{ message.to }}</div>
  23. </div>
  24. <div class="grid-x padding-x">
  25. <div class="large-2 cell">Subject:</div>
  26. <div class="large-10 cell">{{ message.subject }}</div>
  27. </div>
  28. <div class="grid-x padding-x">
  29. <div class="large-2 cell">Text:</div>
  30. <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>
  31. </div>
  32. </div>
  33. {% endblock %}