bgneal@1
|
1 {% extends 'band/base.html' %}
|
bgneal@1
|
2 {% block title %}The Madeira | Shows{% endblock %}
|
bgneal@1
|
3 {% block custom_css %}
|
bgneal@1
|
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" />
|
bgneal@1
|
5 {% endblock %}
|
bgneal@1
|
6 {% block custom_js %}
|
bgneal@1
|
7 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script>
|
bgneal@1
|
8 <script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script>
|
bgneal@1
|
9 {% endblock %}
|
bgneal@1
|
10 {% block content %}
|
bgneal@1
|
11 <h1>Show Dates</h1>
|
bgneal@1
|
12
|
bgneal@1
|
13 <h2>Upcoming Shows</h2>
|
bgneal@1
|
14 {% if upcoming %}
|
bgneal@1
|
15 {% for show in upcoming %}
|
bgneal@1
|
16 <p style="clear:both">
|
bgneal@1
|
17 {% if show.flyer %}
|
bgneal@1
|
18 <a href="{{ show.flyer.image.url }}" class="thickbox" rel="madeira-gallery">
|
bgneal@1
|
19 <img style="float:left; margin-right:5px; margin-bottom:1em" src="{{ show.flyer.get_thumbnail_url }}"
|
bgneal@1
|
20 alt="{{ show.flyer.caption }}" title="{{ show.flyer.caption }}" /></a>
|
bgneal@1
|
21 {% endif %}
|
bgneal@1
|
22 <strong>{{ show.date|date:"F d, Y" }}</strong>
|
bgneal@1
|
23 {% if show.time %}{{ show.time|time:"h:i A" }}{% endif %}<br />
|
bgneal@1
|
24
|
bgneal@1
|
25 {% if show.title and show.url %}
|
bgneal@1
|
26 <a href="{{ show.url }}" target="_blank">{{ show.title }}</a><br />
|
bgneal@1
|
27 {% else %}
|
bgneal@1
|
28 {% if show.title %}
|
bgneal@1
|
29 {{ show.title }}<br />
|
bgneal@1
|
30 {% endif %}
|
bgneal@1
|
31 {% endif %}
|
bgneal@1
|
32
|
bgneal@1
|
33 {% if show.venue %}
|
bgneal@1
|
34 {% if show.venue.url %}
|
bgneal@1
|
35 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>,
|
bgneal@1
|
36 {% else %}
|
bgneal@1
|
37 {{ show.venue }},
|
bgneal@1
|
38 {% endif %}
|
bgneal@1
|
39 {% if show.venue.address %}
|
bgneal@1
|
40 {{ show.venue.address }},
|
bgneal@1
|
41 {% endif %}
|
bgneal@1
|
42 {% if show.venue.city.state %}
|
bgneal@1
|
43 {{ show.venue.city.name }}, {{ show.venue.city.state.name }}
|
bgneal@1
|
44 {% else %}
|
bgneal@1
|
45 {{ show.venue.city.name }}
|
bgneal@1
|
46 {% endif %}
|
bgneal@5
|
47 {% ifnotequal show.venue.city.country.name "USA" %}
|
bgneal@5
|
48 {{ show.venue.city.country.name }}
|
bgneal@5
|
49 {% endifnotequal %}
|
bgneal@1
|
50 <br />
|
bgneal@1
|
51 {% if show.venue.phone %}
|
bgneal@1
|
52 {{ show.venue.phone }}
|
bgneal@1
|
53 <br />
|
bgneal@1
|
54 {% endif %}
|
bgneal@1
|
55 {% endif %}
|
bgneal@1
|
56
|
bgneal@1
|
57 {% if show.bands.all %}
|
bgneal@1
|
58 With:
|
bgneal@1
|
59 {% for band in show.bands.all %}
|
bgneal@1
|
60 {% if band.url %}
|
bgneal@1
|
61 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
|
bgneal@1
|
62 {% else %}
|
bgneal@1
|
63 {{ band.name }}
|
bgneal@1
|
64 {% endif %}
|
bgneal@1
|
65 {% if not forloop.last %}
|
bgneal@1
|
66 •
|
bgneal@1
|
67 {% endif %}
|
bgneal@1
|
68 {% endfor %}
|
bgneal@1
|
69 <br />
|
bgneal@1
|
70 {% endif %}
|
bgneal@1
|
71
|
bgneal@1
|
72 {% if show.notes %}
|
bgneal@1
|
73 {{ show.notes|safe }}
|
bgneal@1
|
74 {% endif %}
|
bgneal@1
|
75 </p>
|
bgneal@1
|
76 {% endfor %}
|
bgneal@1
|
77 {% else %}
|
bgneal@1
|
78 None at this time.
|
bgneal@1
|
79 {% endif %}
|
bgneal@1
|
80 <br clear="all" />
|
bgneal@1
|
81
|
bgneal@1
|
82 {% if flyerGigs %}
|
bgneal@1
|
83 <div class="thumb-box">
|
bgneal@1
|
84 <h2>Flyers</h2>
|
bgneal@1
|
85 <table align="center" border="0">
|
bgneal@1
|
86 <tr><td>
|
bgneal@1
|
87 {% for gig in flyerGigs %}
|
bgneal@1
|
88 <table class="image-table">
|
bgneal@1
|
89 <caption>{{ gig.venue.name}}, {{ gig.date|date:"F 'y" }}</caption>
|
bgneal@1
|
90 <tr><td>
|
bgneal@1
|
91 <a href="{{ gig.flyer.image.url }}" class="thickbox" rel="madeira-gallery">
|
bgneal@1
|
92 <img src="{{ gig.flyer.get_thumbnail_url }}" alt="{{ gig.date|date:"F d, Y" }}" title="{{ gig.date|date:"F d, Y" }}" /></a>
|
bgneal@1
|
93 </td></tr>
|
bgneal@1
|
94 </table>
|
bgneal@1
|
95 {% endfor %}
|
bgneal@1
|
96 </td></tr>
|
bgneal@1
|
97 </table>
|
bgneal@1
|
98 <div clear="all"></div>
|
bgneal@1
|
99 <center><p>To see all our flyers in full size, check out our <a href="{% url band.views.flyers %}">show flyer gallery</a>.</p></center>
|
bgneal@1
|
100 </div>
|
bgneal@1
|
101 {% endif %}
|
bgneal@1
|
102
|
bgneal@1
|
103 {% if previous %}
|
bgneal@1
|
104 <h2>Previous Shows</h2>
|
bgneal@1
|
105 <center>
|
bgneal@1
|
106 <table border="0" cellpadding="3" cellspacing="3" width="95%">
|
bgneal@1
|
107 <tr><th width="20%" align="center">Date</th><th width="40%" align="center">Venue</th><th width="40%" align="center">Bands</th></tr>
|
bgneal@1
|
108 {% for show in previous %}
|
bgneal@1
|
109 <tr>
|
bgneal@1
|
110 <td width="20%">{{ show.date|date:"M d, Y" }}</td>
|
bgneal@1
|
111 <td width="40%">
|
bgneal@1
|
112 {% if show.title and show.url %}
|
bgneal@1
|
113 <a href="{{ show.url }}" target="_blank">{{ show.title }}</a>,
|
bgneal@1
|
114 {% else %}
|
bgneal@1
|
115 {% if show.title %}
|
bgneal@1
|
116 {{ show.title }},
|
bgneal@1
|
117 {% endif %}
|
bgneal@1
|
118 {% endif %}
|
bgneal@1
|
119 {% if show.venue.url %}
|
bgneal@1
|
120 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>,
|
bgneal@1
|
121 {% else %}
|
bgneal@1
|
122 {{ show.venue.name }},
|
bgneal@1
|
123 {% endif %}
|
bgneal@1
|
124 {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }}
|
bgneal@5
|
125 {% ifnotequal show.venue.city.country.name "USA" %}
|
bgneal@5
|
126 {{ show.venue.city.country.name }}
|
bgneal@5
|
127 {% endifnotequal %}
|
bgneal@1
|
128 </td>
|
bgneal@1
|
129 <td width="40%">
|
bgneal@1
|
130 {% for band in show.bands.all %}
|
bgneal@1
|
131 {% if band.url %}
|
bgneal@1
|
132 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
|
bgneal@1
|
133 {% else %}
|
bgneal@1
|
134 {{ band.name }}
|
bgneal@1
|
135 {% endif %}
|
bgneal@1
|
136 {% if not forloop.last %}
|
bgneal@1
|
137 •
|
bgneal@1
|
138 {% endif %}
|
bgneal@1
|
139 {% endfor %}
|
bgneal@1
|
140 </td>
|
bgneal@1
|
141 </tr>
|
bgneal@1
|
142 {% endfor %}
|
bgneal@1
|
143 </table>
|
bgneal@1
|
144 </center>
|
bgneal@1
|
145 {% endif %}
|
bgneal@1
|
146
|
bgneal@1
|
147 {% if stats %}
|
bgneal@1
|
148 <h2>Past Show Statistics</h2>
|
bgneal@1
|
149 <table border="0" cellpadding="3" cellspacing="3">
|
bgneal@1
|
150 <tr><th align="left">Number of shows:</th><td>{{ stats.count }}</td></tr>
|
bgneal@1
|
151 <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr>
|
bgneal@1
|
152 <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr>
|
bgneal@1
|
153 <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr>
|
bgneal@5
|
154 <tr><th align="left">Number of unique countries:</th><td>{{ stats.countries }}</td></tr>
|
bgneal@1
|
155 <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr>
|
bgneal@1
|
156 </table>
|
bgneal@1
|
157 {% endif %}
|
bgneal@1
|
158
|
bgneal@1
|
159 {% endblock %}
|