base_html.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {%- load url from future -%}
  2. {%- load i18n -%}
  3. {%- set style_link = "style=\"color: #08C;\"" -%}
  4. {%- set style_p = "style=\"padding: 0px; margin: 16px 0px;\"" -%}
  5. {%- set style_well = "style=\"background-color: #F0F0F0; border-radius: 3px; margin: 24px 0px; padding: 12px 16px; font-size: 16px;\"" -%}
  6. {%- set style_well_big = "style=\"background-color: #F0F0F0; border-radius: 3px; margin: 24px 0px; padding: 12px 16px; font-size: 18px; text-align: center;\"" -%}
  7. {%- set style_button = "style=\"background-color: #08C; border-radius: 3px; color: #FFF; display: block; text-align: center; margin: 24px 0px; padding: 12px 0px; text-decoration: none; font-weight: bold; font-size: 18px;\"" -%}
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <meta charset="utf-8">
  12. </head>
  13. <body>
  14. <table width="100%">
  15. <tbody>
  16. <tr>
  17. <td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;">
  18. <table width="600" align="center">
  19. <tbody>
  20. <tr>
  21. <td style="padding-bottom: 8px;">
  22. <h1 style="border-bottom: 1px solid #DDD; margin-bottom: 24px; padding: 12px 0px; font-size: 28px;">
  23. {% trans username=user.username %}Hey, {{ username }}!{% endtrans %}
  24. <div style="margin-top: 6px; font-size: 18px; color: #999;">{% block title %}{% endblock %}<div>
  25. </h1>
  26. {% block content %}{% endblock %}
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. <table width="600" align="center">
  32. <tbody>
  33. <tr>
  34. <td style="border-top: 1px solid #DDD; padding: 12px 0px; color: #BBB;">{% if settings.email_footnote %}
  35. {{ settings.email_footnote|safe }}{% else %}
  36. {% trans board_name=settings.board_name %}This e-mail was sent from {{ board_name }}.{% endtrans %}<br><a href="{{ board_address }}" {{ style_link|safe }}>{{ board_address }}</a>{% endif %}
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </body>
  46. </html>