changeset 6:fa724fb48b2c

Show country on home page for upcoming shows if outside the USA.
author Brian Neal <bgneal@gmail.com>
date Thu, 14 May 2009 00:53:26 +0000
parents e602b5302b94
children a411e22d73be
files mysite/templates/band/index.html
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mysite/templates/band/index.html	Thu May 14 00:31:39 2009 +0000
+++ b/mysite/templates/band/index.html	Thu May 14 00:53:26 2009 +0000
@@ -34,7 +34,11 @@
 <ul>
 {% for show in upcomingDates %}
 <li><strong>{{ show.date|date:"l, F d" }}</strong>: {{ show.venue.name }}, {{ show.venue.city.name }}{% if show.venue.city.state %}, {{ show.venue.city.state.name }}
-{% endif %}</li>
+{% endif %}
+{% ifnotequal show.venue.city.country.name "USA" %}
+{{ show.venue.city.country.name }}
+{% endifnotequal %}
+</li>
 {% endfor %}
 </ul>
 <center><a href="{% url mysite.band.views.gigs %}">See all upcoming shows...</a></center>