# HG changeset patch
# User Sverre Rabbelier
# Date 1224178258 0
# Node ID 5ad9cabb5892b91570d89bc379be61238624f5a2
# Parent 4308324241bc8c866c0f3d901aab4c1e35572713
Rename 'group' to 'entity' in the Django templates
This allows for generic use of these templates.
Patch by: Sverre Rabbelier
Reviewed by: to-be-reviewed
diff -r 4308324241bc -r 5ad9cabb5892 app/soc/templates/soc/group/list/all.html
--- a/app/soc/templates/soc/group/list/all.html Thu Oct 16 16:05:08 2008 +0000
+++ b/app/soc/templates/soc/group/list/all.html Thu Oct 16 17:30:58 2008 +0000
@@ -14,18 +14,18 @@
{% endcomment %}
{% load forms_helpers %}
{% block page_title %}
-Site: {{ group_type_plural }} List
+Site: {{ entity_type_plural }} List
{% endblock %}
{% block header_title %}
-{{ group_type_plural }} List
+{{ entity_type_plural }} List
{% endblock %}
{% block body %}
{% block instructions %}
-List of {{ group_type_plural }} in Google Open Source Programs.
+List of {{ entity_type_plural }} in Google Open Source Programs.
{% endblock %}
{% include list_main %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff -r 4308324241bc -r 5ad9cabb5892 app/soc/templates/soc/group/list/group_row.html
--- a/app/soc/templates/soc/group/list/group_row.html Thu Oct 16 16:05:08 2008 +0000
+++ b/app/soc/templates/soc/group/list/group_row.html Thu Oct 16 17:30:58 2008 +0000
@@ -1,7 +1,7 @@
+onclick="document.location.href='/site/{{ entity_type|lower }}/profile/{{ data_element.link_name }}'" name="name">
{{ data_element.name }}
+ href="/site/{{ entity_type|lower }}/profile/{{ data_element.link_name }}">{{ data_element.name }}
|
{{ data_element.link_name }} |
diff -r 4308324241bc -r 5ad9cabb5892 app/soc/templates/soc/group/profile/edit.html
--- a/app/soc/templates/soc/group/profile/edit.html Thu Oct 16 16:05:08 2008 +0000
+++ b/app/soc/templates/soc/group/profile/edit.html Thu Oct 16 17:30:58 2008 +0000
@@ -18,17 +18,17 @@
{% endblock %}
{% block page_title %}
-{% if existing_group %}
-Site: Modify Existing {{ group_type }}
+{% if existing_entity %}
+Site: Modify Existing {{ entity_type }}
{% else %}
-Site: Create New {{ group_type }}
+Site: Create New {{ entity_type }}
{% endif %}
{% endblock %}
{% block header_title %}
-{% if existing_group %}
-Modify Existing {{ group_type }}
+{% if entity %}
+Modify Existing {{ entity_type }}
{% else %}
-Create a New {{ group_type }}
+Create a New {{ entity_type }}
{% endif %}
{% endblock %}
@@ -36,7 +36,7 @@
{% block instructions %}
-Please use this form to alter {{ group_type }} details.
+Please use this form to alter {{ entity_type }} details.
{% endblock %}