diff mysite/templates/band/gigs.html @ 5:e602b5302b94

Added support for countries beside the USA.
author Brian Neal <bgneal@gmail.com>
date Thu, 14 May 2009 00:31:39 +0000
parents 0dcfcdf50c62
children d771b81e927e
line wrap: on
line diff
--- a/mysite/templates/band/gigs.html	Sun Apr 19 18:36:56 2009 +0000
+++ b/mysite/templates/band/gigs.html	Thu May 14 00:31:39 2009 +0000
@@ -44,6 +44,9 @@
          {% else %}
             {{ show.venue.city.name }}
          {% endif %}
+         {% ifnotequal show.venue.city.country.name "USA" %}
+            {{ show.venue.city.country.name }}
+         {% endifnotequal %}
          <br />
          {% if show.venue.phone %}
             {{ show.venue.phone }}
@@ -119,6 +122,9 @@
                {{ show.venue.name }},
             {% endif %}
             {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }}
+            {% ifnotequal show.venue.city.country.name "USA" %}
+               {{ show.venue.city.country.name }}
+            {% endifnotequal %}
          </td>
          <td width="40%">
             {% for band in show.bands.all %}
@@ -145,6 +151,7 @@
    <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr>
    <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr>
    <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr>
+   <tr><th align="left">Number of unique countries:</th><td>{{ stats.countries }}</td></tr>
    <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr>
 </table>
 {% endif %}