Fix for Issue 218.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 26 Feb 2009 18:00:30 +0000
changeset 1533 50fb3a9b6615
parent 1532 ea80be783971
child 1534 0a8dbeccf0d9
Fix for Issue 218. Basically just an update of the soc/gorup/messages/accepted.html template. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/logic/helper/notifications.py
app/soc/templates/soc/group/messages/accepted.html
app/soc/views/models/club_app.py
app/soc/views/models/org_app.py
--- a/app/soc/logic/helper/notifications.py	Thu Feb 26 17:36:46 2009 +0000
+++ b/app/soc/logic/helper/notifications.py	Thu Feb 26 18:00:30 2009 +0000
@@ -105,6 +105,8 @@
       }
 
   message_properties = {
+      'application_type': params['name'],
+      'group_type': params['group_name'],
       'group_name': entity.name,
       'url': url,
       }
--- a/app/soc/templates/soc/group/messages/accepted.html	Thu Feb 26 17:36:46 2009 +0000
+++ b/app/soc/templates/soc/group/messages/accepted.html	Thu Feb 26 18:00:30 2009 +0000
@@ -14,6 +14,6 @@
 {% endcomment %}
 
 {% block content %}
-Your club application for "{{ group_name }}" has been accepted.
-Please click <a href="{{ url }}">here</a> to fill in the necessary information and create your club.
+Your {{ application_type }} for "{{ group_name }}" has been accepted.
+Please click <a href="{{ url }}">here</a> to fill in the necessary information and create your {{ group_type }}.
 {% endblock %}
--- a/app/soc/views/models/club_app.py	Thu Feb 26 17:36:46 2009 +0000
+++ b/app/soc/views/models/club_app.py	Thu Feb 26 18:00:30 2009 +0000
@@ -82,6 +82,7 @@
     new_params['name_plural'] = "Club Applications"
     new_params['name_short'] = "Club App"
     new_params['url_name'] = "club_app"
+    new_params['group_name'] = "Club"
     new_params['group_url_name'] = 'club'
 
     new_params['review_template'] = 'soc/club_app/review.html'
--- a/app/soc/views/models/org_app.py	Thu Feb 26 17:36:46 2009 +0000
+++ b/app/soc/views/models/org_app.py	Thu Feb 26 18:00:30 2009 +0000
@@ -116,6 +116,7 @@
     new_params['name_plural'] = "Organization Applications"
     new_params['name_short'] = "Org App"
     new_params['url_name'] = "org_app"
+    new_params['group_name'] = "Organization"
     new_params['group_url_name'] = 'org'
 
     new_params['review_template'] = 'soc/org_app/review.html'