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@12
|
19 <!-- <img style="float:left; margin-right:5px; margin-bottom:1em" src="{{ show.flyer.get_thumbnail_url }}" -->
|
bgneal@12
|
20 <img class="left" src="{{ show.flyer.get_thumbnail_url }}"
|
bgneal@1
|
21 alt="{{ show.flyer.caption }}" title="{{ show.flyer.caption }}" /></a>
|
bgneal@1
|
22 {% endif %}
|
bgneal@1
|
23 <strong>{{ show.date|date:"F d, Y" }}</strong>
|
bgneal@1
|
24 {% if show.time %}{{ show.time|time:"h:i A" }}{% endif %}<br />
|
bgneal@1
|
25
|
bgneal@1
|
26 {% if show.title and show.url %}
|
bgneal@1
|
27 <a href="{{ show.url }}" target="_blank">{{ show.title }}</a><br />
|
bgneal@1
|
28 {% else %}
|
bgneal@1
|
29 {% if show.title %}
|
bgneal@1
|
30 {{ show.title }}<br />
|
bgneal@1
|
31 {% endif %}
|
bgneal@1
|
32 {% endif %}
|
bgneal@1
|
33
|
bgneal@1
|
34 {% if show.venue %}
|
bgneal@1
|
35 {% if show.venue.url %}
|
bgneal@1
|
36 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>,
|
bgneal@1
|
37 {% else %}
|
bgneal@1
|
38 {{ show.venue }},
|
bgneal@1
|
39 {% endif %}
|
bgneal@1
|
40 {% if show.venue.address %}
|
bgneal@1
|
41 {{ show.venue.address }},
|
bgneal@1
|
42 {% endif %}
|
bgneal@1
|
43 {% if show.venue.city.state %}
|
bgneal@1
|
44 {{ show.venue.city.name }}, {{ show.venue.city.state.name }}
|
bgneal@1
|
45 {% else %}
|
bgneal@1
|
46 {{ show.venue.city.name }}
|
bgneal@1
|
47 {% endif %}
|
bgneal@5
|
48 {% ifnotequal show.venue.city.country.name "USA" %}
|
bgneal@5
|
49 {{ show.venue.city.country.name }}
|
bgneal@5
|
50 {% endifnotequal %}
|
bgneal@1
|
51 <br />
|
bgneal@1
|
52 {% if show.venue.phone %}
|
bgneal@1
|
53 {{ show.venue.phone }}
|
bgneal@1
|
54 <br />
|
bgneal@1
|
55 {% endif %}
|
bgneal@1
|
56 {% endif %}
|
bgneal@1
|
57
|
bgneal@1
|
58 {% if show.bands.all %}
|
bgneal@1
|
59 With:
|
bgneal@1
|
60 {% for band in show.bands.all %}
|
bgneal@1
|
61 {% if band.url %}
|
bgneal@1
|
62 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
|
bgneal@1
|
63 {% else %}
|
bgneal@1
|
64 {{ band.name }}
|
bgneal@1
|
65 {% endif %}
|
bgneal@1
|
66 {% if not forloop.last %}
|
bgneal@1
|
67 •
|
bgneal@1
|
68 {% endif %}
|
bgneal@1
|
69 {% endfor %}
|
bgneal@1
|
70 <br />
|
bgneal@1
|
71 {% endif %}
|
bgneal@1
|
72
|
bgneal@1
|
73 {% if show.notes %}
|
bgneal@1
|
74 {{ show.notes|safe }}
|
bgneal@1
|
75 {% endif %}
|
bgneal@1
|
76 </p>
|
bgneal@1
|
77 {% endfor %}
|
bgneal@1
|
78 {% else %}
|
bgneal@1
|
79 None at this time.
|
bgneal@1
|
80 {% endif %}
|
bgneal@1
|
81 <br clear="all" />
|
bgneal@1
|
82
|
bgneal@1
|
83 {% if flyerGigs %}
|
bgneal@1
|
84 <div class="thumb-box">
|
bgneal@1
|
85 <h2>Flyers</h2>
|
bgneal@12
|
86 <center>
|
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@12
|
96 </center>
|
bgneal@1
|
97 <div clear="all"></div>
|
bgneal@1
|
98 <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
|
99 </div>
|
bgneal@1
|
100 {% endif %}
|
bgneal@1
|
101
|
bgneal@1
|
102 {% if previous %}
|
bgneal@1
|
103 <h2>Previous Shows</h2>
|
bgneal@1
|
104 <center>
|
bgneal@1
|
105 <table border="0" cellpadding="3" cellspacing="3" width="95%">
|
bgneal@1
|
106 <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
|
107 {% for show in previous %}
|
bgneal@1
|
108 <tr>
|
bgneal@1
|
109 <td width="20%">{{ show.date|date:"M d, Y" }}</td>
|
bgneal@1
|
110 <td width="40%">
|
bgneal@1
|
111 {% if show.title and show.url %}
|
bgneal@1
|
112 <a href="{{ show.url }}" target="_blank">{{ show.title }}</a>,
|
bgneal@1
|
113 {% else %}
|
bgneal@1
|
114 {% if show.title %}
|
bgneal@1
|
115 {{ show.title }},
|
bgneal@1
|
116 {% endif %}
|
bgneal@1
|
117 {% endif %}
|
bgneal@1
|
118 {% if show.venue.url %}
|
bgneal@1
|
119 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>,
|
bgneal@1
|
120 {% else %}
|
bgneal@1
|
121 {{ show.venue.name }},
|
bgneal@1
|
122 {% endif %}
|
bgneal@1
|
123 {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }}
|
bgneal@5
|
124 {% ifnotequal show.venue.city.country.name "USA" %}
|
bgneal@5
|
125 {{ show.venue.city.country.name }}
|
bgneal@5
|
126 {% endifnotequal %}
|
bgneal@1
|
127 </td>
|
bgneal@1
|
128 <td width="40%">
|
bgneal@1
|
129 {% for band in show.bands.all %}
|
bgneal@1
|
130 {% if band.url %}
|
bgneal@1
|
131 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
|
bgneal@1
|
132 {% else %}
|
bgneal@1
|
133 {{ band.name }}
|
bgneal@1
|
134 {% endif %}
|
bgneal@1
|
135 {% if not forloop.last %}
|
bgneal@1
|
136 •
|
bgneal@1
|
137 {% endif %}
|
bgneal@1
|
138 {% endfor %}
|
bgneal@1
|
139 </td>
|
bgneal@1
|
140 </tr>
|
bgneal@1
|
141 {% endfor %}
|
bgneal@1
|
142 </table>
|
bgneal@1
|
143 </center>
|
bgneal@1
|
144 {% endif %}
|
bgneal@1
|
145
|
bgneal@1
|
146 {% if stats %}
|
bgneal@1
|
147 <h2>Past Show Statistics</h2>
|
bgneal@1
|
148 <table border="0" cellpadding="3" cellspacing="3">
|
bgneal@1
|
149 <tr><th align="left">Number of shows:</th><td>{{ stats.count }}</td></tr>
|
bgneal@1
|
150 <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr>
|
bgneal@1
|
151 <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr>
|
bgneal@1
|
152 <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr>
|
bgneal@5
|
153 <tr><th align="left">Number of unique countries:</th><td>{{ stats.countries }}</td></tr>
|
bgneal@1
|
154 <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr>
|
bgneal@1
|
155 </table>
|
bgneal@1
|
156 {% endif %}
|
bgneal@1
|
157
|
bgneal@1
|
158 {% endblock %}
|