]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/base.html
9d09f597d3a9e72b4ed433358afff01261db77d2
[osqa.git] / forum / skins / default / templates / notifications / base.html
1 {% load extra_filters extra_tags i18n email_tags %}
2
3 {% declare %}
4     p_style = settings.EMAIL_PARAGRAPH_STYLE
5     a_style = settings.EMAIL_ANCHOR_STYLE
6     hr_style = "color:#ccc;border:0;height:1px;background-color:#ccc;margin-bottom:20px;"
7     small_style = "color:#333333;font-family:'Lucida Grande', Trebuchet, Helvetica, sans-serif;font-size:12px;"
8     table_style = "border:20px %s solid;margin:10px auto 10px auto;width:750px;text-align:left;" % settings.EMAIL_BORDER_COLOR
9 {% enddeclare %}
10 <html>
11 <head>
12 </head>
13 <body style="margin:0;">
14 <center>
15 <table style="{{ table_style }}">
16 <tbody><tr><td style="padding:20px;">
17 <img src="{{ settings.APP_URL }}{{ settings.APP_LOGO }}" alt="{{settings.APP_TITLE}}" />
18 <hr style="{{ hr_style }}" />
19 {% if not exclude_greeting %}
20 <p style="{{ p_style }}">{% trans "Hello" %} {{ recipient.username }},</p>
21 {% endif %}
22 {% block content %}{% endblock%}
23 <p style="{{ p_style }}">Thanks,<br />{{settings.APP_SHORT_NAME}}</p>
24 {% if not exclude_finetune %}
25 <p style="{{ p_style }}">P.S. You can always fine-tune which notifications you receive
26 <a href="{{ settings.APP_URL }}{% url user_subscriptions id=recipient.id %}" style="{{ a_style }}">here</a>.
27 {% endif %}
28 </p>
29 <hr style="{{ hr_style }}" />
30 <p style="{{ p_style }}"><small style="{{ small_style }}">{{ settings.EMAIL_FOOTER_TEXT }}</small></p>
31 </td></tr></tbody></table>
32 </center>
33 </body>
34 </html>