]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/notifications/base.html
merge jambazov -> trunk
[osqa.git] / forum / skins / default / templates / notifications / base.html
index 9783bc7f52879ae5eeafcc2489ada95ccea637c8..ca1f5f64cf4a09704e4b8dbf62f9001fde812f10 100644 (file)
@@ -1,49 +1,35 @@
 {% load extra_filters extra_tags i18n email_tags %}
 
 {% declare %}
-    logo_location := os.path.join(str(settings.UPFILES_FOLDER), os.path.basename(str(settings.APP_LOGO)))
+    p_style = settings.EMAIL_PARAGRAPH_STYLE
+    a_style = settings.EMAIL_ANCHOR_STYLE
+    hr_style = "color:#ccc;border:0;height:1px;background-color:#ccc;margin-bottom:20px;"
+    small_style = "color:#333333;font-family:'Lucida Grande', Trebuchet, Helvetica, sans-serif;font-size:12px;"
+    table_style = "border:20px %s solid;margin:10px auto 10px auto;width:750px;text-align:left;" % settings.EMAIL_BORDER_COLOR
 {% enddeclare %}
-{% embedmedia logo_location as logo %}
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-    <head>
-        <style type="text/css">
-            body {
-                background: #FFF;
-                font-size: 12px;
-                line-height: 150%;
-                margin: 0;
-                padding: 0;
-                color: #000;
-                font-family: sans-serif;
-            }
-
-            #wrapper {
-                width: 600px;
-                margin: auto;
-                padding: 0;
-            }
-
-            a img {
-                border: none;
-            }
-        </style>
-    </head>
-    <body>
-        <a href="{% fullurl index %}">
-            <img src="cid:logo" title="{% trans "home" %}" alt="{{settings.APP_TITLE}} logo"/>
-        </a>
-        <br />
-        <p>{{ settings.APP_TITLE }}</p>
-    <br /><br />
-    <div id="wrapper">
-            <div id="room">
-                <div id="CALeft">
-                    {% block content%}
-                    {% endblock%}
-                </div>
-            </div>
-            <div class="spacer3"></div>
-        </div>
-    </body>
-</html>
\ No newline at end of file
+<html>
+<head>
+<base href="{{ settings.APP_URL }}">
+</head>
+<body style="margin:0;">
+<center>
+<table style="{{ table_style }}">
+<tbody><tr><td style="padding:20px;">
+<a href="{{ settings.APP_URL }}" style="border: 0;"><img src="{{ settings.APP_URL }}{{ settings.APP_LOGO }}" alt="{{settings.APP_TITLE}}" border="0"/></a>
+<hr style="{{ hr_style }}" />
+{% if not exclude_greeting %}
+<p style="{{ p_style }}">{% trans "Hello" %} {{ recipient.username }},</p>
+{% endif %}
+{% block content %}{% endblock%}
+<p style="{{ p_style }}">{% trans "Thanks" %},<br />{{settings.APP_SHORT_NAME}}</p>
+{% if not exclude_finetune %}
+<p style="{{ p_style }}">{% trans "P.S. You can always fine-tune which notifications you receive" %}
+<a href="{{ settings.APP_URL }}{% url user_subscriptions id=recipient.id,slug=recipient.username|slugify %}" style="{{ a_style }}">{% trans "here" %}</a>.
+{% endif %}
+</p>
+<hr style="{{ hr_style }}" />
+<p style="{{ p_style }}"><small style="{{ small_style }}">{{ settings.EMAIL_FOOTER_TEXT }}</small></p>
+</td></tr></tbody></table>
+</center>
+</body>
+</html>