Add an idea list (url) property to organization
Also include this url in the organisation list.
Patch by: Sverre Rabbelier
--- a/app/soc/models/organization.py Sat Feb 14 19:03:38 2009 +0000
+++ b/app/soc/models/organization.py Sat Feb 14 20:21:51 2009 +0000
@@ -40,13 +40,13 @@
'reviewers' back-reference Query of the Organization model 'org'
reference.
"""
-
+
#: Optional development mailing list.
dev_mailing_list = db.StringProperty(required=False,
verbose_name=ugettext('Development Mailing List'))
dev_mailing_list.help_text = ugettext(
'Mailing list email address, URL to sign-up page, etc.')
-
+
member_template = db.ReferenceProperty(
reference_class=soc.models.document.Document, required=False,
collection_name='org_app_member_template',
@@ -55,3 +55,8 @@
'This template will be presented to potential members when they'
' apply to the organization.')
+ ideas = db.LinkProperty(required=False, verbose_name=ugettext('Idea list'))
+ ideas.help_text = ugettext(
+ 'The URL to the ideas list of your organization.')
+ ideas.example_text = ugettext('For instance a link to a Melange public '
+ 'document or some other URL')
--- a/app/soc/templates/soc/organization/list/heading.html Sat Feb 14 19:03:38 2009 +0000
+++ b/app/soc/templates/soc/organization/list/heading.html Sat Feb 14 20:21:51 2009 +0000
@@ -3,4 +3,5 @@
<th>Program ID</th>
<th>Link ID</th>
<th>Short name</th>
+ <th>Idea Page</th>
</tr>
--- a/app/soc/templates/soc/organization/list/row.html Sat Feb 14 19:03:38 2009 +0000
+++ b/app/soc/templates/soc/organization/list/row.html Sat Feb 14 20:21:51 2009 +0000
@@ -6,5 +6,6 @@
</td>
<td><div class="link_id">{{ list.item.scope.key.name }}</a></div></td>
<td><div class="link_id">{{ list.item.link_id }}</a></div></td>
- <td><div class="short_name">{{ list.item.short_name }}</div></td>
+ <td><div class="short_name">{{ list.item.short_name }}</a></div></td>
+ <td><div class="idea_url">{{ list.item.ideas|urlizetrunc:25 }}</div></td>
</tr>