]> git.openstreetmap.org Git - osqa.git/commitdiff
updated to a new base template and new replacements for easy styling
authorrick <rick@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 1 Jun 2010 17:23:56 +0000 (17:23 +0000)
committerrick <rick@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 1 Jun 2010 17:23:56 +0000 (17:23 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@352 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/notifications/base.html
forum/skins/default/templates/notifications/base_text.html [new file with mode: 0644]
forum/skins/default/templates/notifications/newquestion.html

index 9783bc7f52879ae5eeafcc2489ada95ccea637c8..6879bc2992b4d1305a87a7ffb99cb5f07a6d9c6b 100644 (file)
@@ -1,49 +1,33 @@
 {% 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)))
+    logo_location = "http://meta.osqa.net/upfiles/osqa_logo.png"
+    p_style = "color:#333333;font-family:'helvetica neue', arial, Helvetica, sans-serif;line-height:18px;font-size:14px;margin-top:10px;"
+    a_style = "text-decoration:none;color:#3060a8;font-weight:bold;"
+    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 #e5ebf8 solid;margin:10px auto 10px auto;width:750px;text-align:left;"
+    postal_address = "DZone, Inc. 140 Preston Executive Drive, Cary NC 27513, USA"
 {% 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>
+<head>
+</head>
+<body style="margin:0;">
+<center>
+<table style="{{ table_style }}">
+<tbody><tr><td style="padding:20px;">
+<img src="{{ logo_location }}" alt="{{settings.APP_TITLE}}" />
+<hr style="{{ hr_style }}" />
+<p style="{{ p_style }}">{% trans "Hello" %} {{ recipient.username }},</p>
+{% block content %}
+{% endblock%}                    
+<p style="{{ p_style }}">Thanks,<br />{{settings.APP_SHORT_NAME}}</p>
+<p style="{{ p_style }}">P.S. You can always fine-tune which notifications you receive
+<a href="{{ settings.APP_URL }}{% url user_subscriptions id=recipient.id %}" style="{{ a_style }}">here</a>.
+</p>
+<hr style="{{ hr_style }}" />
+<p style="{{ p_style }}"><small style="{{ small_style }}">{{ postal_address }}</small></p>
+</td></tr></tbody></table>
+</center>
+</body>
 </html>
\ No newline at end of file
diff --git a/forum/skins/default/templates/notifications/base_text.html b/forum/skins/default/templates/notifications/base_text.html
new file mode 100644 (file)
index 0000000..ded1e97
--- /dev/null
@@ -0,0 +1,18 @@
+{% load extra_filters extra_tags i18n email_tags %}
+
+{% declare %}
+    postal_address = "DZone, Inc. 140 Preston Executive Drive, Cary NC 27513, USA"
+{% enddeclare %}
+
+{% trans "Hello" %} {{ recipient.username }},
+
+{% block content %}
+{% endblock%}       
+
+Thanks,
+{{settings.APP_SHORT_NAME}}
+
+P.S. You can always fine-tune which notifications you receive here:
+{{ settings.APP_URL }}{% url user_subscriptions id=recipient.id %}
+
+{{ postal_address }}
\ No newline at end of file
index b0ee0f045c573caea556b271296cb03f3ef59b1a..6615831806a2702fe70a10bf38a1030831ec0239 100644 (file)
     {% subject %}{% blocktrans %}{{ prefix }} New question on {{ app_name }}{% endblocktrans %}{% endsubject %}\r
 \r
     {% htmlcontent notifications/base.html %}\r
-        <p>{% trans "Hello" %} {{ recipient.username }},</p>\r
-\r
-        <p>\r
+        <p style="{{ p_style }}">\r
             {% blocktrans %}\r
             {{ question_author }} has just posted a new question on {{ app_name }}, with title\r
-            <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a> and tagged <em>{{ question_tags }}</em>:\r
+            <a style="{{ a_style }}" href="{{ app_url }}{{ question_url }}">{{ question_title }}</a> and tagged <em>{{ question_tags }}</em>:\r
             {% endblocktrans %}\r
         </p>\r
 \r
             {{ question.html|safe }}\r
         </blockquote>\r
 \r
-        <p>{% trans "Don't forget to come over and cast your vote." %}</p>\r
-\r
-        <p>{% blocktrans %}Sincerely,<br />\r
-        Forum Administrator{% endblocktrans %}</p>\r
+        <p style="{{ p_style }}">{% trans "Don't forget to come over and cast your vote." %}</p>        \r
     {% endhtmlcontent %}\r
 \r
-    {% textcontent %}\r
-        {% trans "Hello" %} {{ recipient.username }}\r
-    \r
-        {% blocktrans %}\r
-        {{ question_author }} has just posted a new question on {{ app_name }}, with title\r
-        "{{ question_title }}" and tagged {{ question_tags }}:\r
-        {% endblocktrans %}\r
-\r
-\r
-        {{ question.body|safe }}\r
-\r
+{% textcontent notifications/base_text.html %}\r
+{% blocktrans %}\r
+{{ question_author }} has just posted a new question on {{ app_name }}, with title\r
+"{{ question_title }}" and tagged {{ question_tags }}:\r
+{% endblocktrans %}\r
 \r
-        {% trans "Don't forget to come over and cast your vote." %}\r
+{{ question.body|safe }}\r
 \r
-        {% blocktrans %}Sincerely,\r
-        Forum Administrator{% endblocktrans %}\r
-    {% endtextcontent %}\r
+{% trans "Don't forget to come over and cast your vote." %}\r
+{% endtextcontent %}\r
 {% endemail %}\r
 \r