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