Mercurial > public > madeira
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:432f7467543a | 5:e602b5302b94 |
---|---|
42 {% if show.venue.city.state %} | 42 {% if show.venue.city.state %} |
43 {{ show.venue.city.name }}, {{ show.venue.city.state.name }} | 43 {{ show.venue.city.name }}, {{ show.venue.city.state.name }} |
44 {% else %} | 44 {% else %} |
45 {{ show.venue.city.name }} | 45 {{ show.venue.city.name }} |
46 {% endif %} | 46 {% endif %} |
47 {% ifnotequal show.venue.city.country.name "USA" %} | |
48 {{ show.venue.city.country.name }} | |
49 {% endifnotequal %} | |
47 <br /> | 50 <br /> |
48 {% if show.venue.phone %} | 51 {% if show.venue.phone %} |
49 {{ show.venue.phone }} | 52 {{ show.venue.phone }} |
50 <br /> | 53 <br /> |
51 {% endif %} | 54 {% endif %} |
117 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>, | 120 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>, |
118 {% else %} | 121 {% else %} |
119 {{ show.venue.name }}, | 122 {{ show.venue.name }}, |
120 {% endif %} | 123 {% endif %} |
121 {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }} | 124 {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }} |
125 {% ifnotequal show.venue.city.country.name "USA" %} | |
126 {{ show.venue.city.country.name }} | |
127 {% endifnotequal %} | |
122 </td> | 128 </td> |
123 <td width="40%"> | 129 <td width="40%"> |
124 {% for band in show.bands.all %} | 130 {% for band in show.bands.all %} |
125 {% if band.url %} | 131 {% if band.url %} |
126 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> | 132 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> |
143 <table border="0" cellpadding="3" cellspacing="3"> | 149 <table border="0" cellpadding="3" cellspacing="3"> |
144 <tr><th align="left">Number of shows:</th><td>{{ stats.count }}</td></tr> | 150 <tr><th align="left">Number of shows:</th><td>{{ stats.count }}</td></tr> |
145 <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr> | 151 <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr> |
146 <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr> | 152 <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr> |
147 <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr> | 153 <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr> |
154 <tr><th align="left">Number of unique countries:</th><td>{{ stats.countries }}</td></tr> | |
148 <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr> | 155 <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr> |
149 </table> | 156 </table> |
150 {% endif %} | 157 {% endif %} |
151 | 158 |
152 {% endblock %} | 159 {% endblock %} |