Added base template for notification messages.
authorLennard de Rijk <ljvderijk@gmail.com>
Wed, 17 Dec 2008 22:25:16 +0000
changeset 758 59307ec93f1d
parent 757 b11cee4ab535
child 759 ed7a7596033e
Added base template for notification messages. This makes the messages a bit more friendly by including a greeting and signature. Patch by: Lennard de Rijk
app/soc/templates/soc/notification/messages/base.html
app/soc/templates/soc/notification/messages/invitation.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/notification/messages/base.html	Wed Dec 17 22:25:16 2008 +0000
@@ -0,0 +1,27 @@
+{% comment %}
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+
+<div id="greeting">
+	{% block greeting %}
+	Hi {{ to_name }},
+	{% endblock %}
+</div>
+
+<div id="content">
+	{% block content %}{% endblock %}
+</div>
+
+<div id="signature">
+	{% block signature %}Greetings, <br />{{ sender_name }}{% endblock %}
+</div>
\ No newline at end of file
--- a/app/soc/templates/soc/notification/messages/invitation.html	Wed Dec 17 22:15:21 2008 +0000
+++ b/app/soc/templates/soc/notification/messages/invitation.html	Wed Dec 17 22:25:16 2008 +0000
@@ -1,3 +1,4 @@
+{% extends "soc/notification/messages/base.html" %}
 {% comment %}
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
@@ -11,7 +12,6 @@
 See the License for the specific language governing permissions and
 limitations under the License.
 {% endcomment %}
-
 {% block content %}
 You have been invited by {{ sender_name }} to become a {{ role }} for {{ group }}.
 Please click <a href="{{ invitation_url }}">here</a> to fill in the necessary information and accept the invitation.