export_single.html 990 B

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. {% from "util.html" import render_message %}
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>Slack Export - {{ workspace_name }}</title>
  7. <style>
  8. {{css}}
  9. .channel-block {
  10. page-break-after: always;
  11. }
  12. .export-metadata {
  13. line-height: 2;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <h1>Export of Slack Workspace "{{workspace_name}}"</h1>
  19. <table class="export-metadata">
  20. <tr><td>Generated from file:</td><td><b>{{source_file}}</b></td></tr>
  21. <tr><td>Generated on:</td><td> <b>{{generated_on.strftime("%F %H:%M:%S")}}</b></td></tr>
  22. </table>
  23. </div>
  24. {% for channel in channels %}
  25. <div class="channel-block">
  26. <h2>Messages in #{{channel.channel_name}}</h2>
  27. <div class="message-list">
  28. {% for message in channel.messages %}
  29. {{render_message(message)}}
  30. {% endfor %}
  31. </div>
  32. </div>
  33. {% endfor %}
  34. </body>
  35. </html>