From cd605fdb05414efb74267fd4af68aa8f9c5ce1d5 Mon Sep 17 00:00:00 2001 From: Daniel Karlsson Date: Fri, 12 Apr 2013 10:23:06 +0200 Subject: [PATCH] Project list widget now displays partners Project partners are now listed with working links. . #15 --- akvo/templates/widgets/project_list.html | 35 ++++-------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/akvo/templates/widgets/project_list.html b/akvo/templates/widgets/project_list.html index 15b7e9d84f..65fc05a406 100644 --- a/akvo/templates/widgets/project_list.html +++ b/akvo/templates/widgets/project_list.html @@ -129,33 +129,12 @@

- {% with project.fieldpartner_set.all as fieldpartners %} - {% if fieldpartners %} -

{% trans 'Field Partner' %}{{fieldpartners.count|pluralize}}
- {% for fieldpartner in fieldpartners %} -
{{fieldpartner.field_organisation.name}}{% if not forloop.last %},{% endif %} - {% endfor %} -

- {% endif %} - {% endwith %} - {% with project.fundingpartner_set.all as fundingpartners %} - {% if fundingpartners %} -

{% trans 'Funding Partner' %}{{fundingpartners.count|pluralize}}
- {% for fundingpartner in fundingpartners %} - {{fundingpartner.funding_organisation.name}}{% if not forloop.last %},{% endif %} - {% endfor %} -

- {% endif %} - {% endwith %} - {% with project.supportpartner_set.all as supportpartners %} - {% if supportpartners %} -

{% trans 'Support Partner' %}{{supportpartners.count|pluralize}}
- {% for supportpartner in supportpartners %} - {{supportpartner.support_organisation.name}}{% if not forloop.last %},{% endif %} - {% endfor %} -

- {% endif %} - {% endwith %} +

+ {% for partner in project.partners.all.distinct %} + + {{partner.name}}{% if not forloop.last %},{% endif %} + {% endfor %} +

@@ -166,5 +145,3 @@