# HG changeset patch # User Sverre Rabbelier # Date 1234642911 0 # Node ID 5153bd89147f4c1eed4083a28139b62ba481bdb2 # Parent 0e587b1d0c1d09e455067f7f9c3b7f09e06a4d84 Add an idea list (url) property to organization Also include this url in the organisation list. Patch by: Sverre Rabbelier diff -r 0e587b1d0c1d -r 5153bd89147f app/soc/models/organization.py --- 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') diff -r 0e587b1d0c1d -r 5153bd89147f app/soc/templates/soc/organization/list/heading.html --- 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 @@ Program ID Link ID Short name + Idea Page diff -r 0e587b1d0c1d -r 5153bd89147f app/soc/templates/soc/organization/list/row.html --- 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 @@ -
{{ list.item.short_name }}
+
{{ list.item.short_name }}
+
{{ list.item.ideas|urlizetrunc:25 }}