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