message.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 id="messagetext" class="oldstyle">{{ message.text }}</pre>
  39. {% if message.rot47 is defined %}
  40. <script>
  41. $("#messagetext").easyTooltip({
  42. content: "{{ message.rot47|safe }}",
  43. tooltipBgColor: "rgba(200,200,200,1)",
  44. tooltipOpacity: 1,
  45. });
  46. </script>
  47. {% endif %}
  48. {% endif %}
  49. </div>
  50. </div>
  51. </div>
  52. {% endblock %}