YoBoY has proposed merging lp:~yoboy-leguesh/loco-directory/bugfix-lp-601928
into lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
Related bugs:
#601928 The list of countries in the field Location on a team page should be
separated by comas.
https://bugs.launchpad.net/bugs/601928
Separate each items by a coma when a team have more than one country or
language its detail page.
--
https://code.launchpad.net/~yoboy-leguesh/loco-directory/bugfix-lp-601928/+merge/33357
Your team loco-directory-dev is requested to review the proposed merge of
lp:~yoboy-leguesh/loco-directory/bugfix-lp-601928 into lp:loco-directory.
=== modified file 'loco_directory/templates/teams/team_detail.html'
--- loco_directory/templates/teams/team_detail.html 2010-08-19 22:32:04 +0000
+++ loco_directory/templates/teams/team_detail.html 2010-08-23 07:55:56 +0000
@@ -25,9 +25,7 @@
<th class="form-item-label" scope="row"><label>{% trans "Location:" %}</label></th>
<td class="form-item-value">
{% if team.countries.all %}
- {% for country in team.countries.all %}
- {{ country.name }}
- {% endfor %}
+ {% for country in team.countries.all %}{% if not forloop.first %}, {% endif %}{{ country.name }}{% endfor %}
{% if team.spr %}, {% trans team.spr %}{% endif %}
{% if team.city %}, {% trans team.city %}{% endif %}
{% else %}
@@ -39,9 +37,7 @@
<th class="form-item-label" scope="row"><label>{% trans "Languages:" %}</label></th>
<td class="form-item-value">
{% if team.languages.all %}
- {% for language in team.languages.all %}
- {{ language.name }}
- {% endfor %}
+ {% for language in team.languages.all %}{% if not forloop.first %}, {% endif %}{{ language.name }}{% endfor %}
{% else %}
{% trans "None Specified" %}
{% endif %}
_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help : https://help.launchpad.net/ListHelp