annotate 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
rev   line source
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@1 47 <br />
bgneal@1 48 {% if show.venue.phone %}
bgneal@1 49 {{ show.venue.phone }}
bgneal@1 50 <br />
bgneal@1 51 {% endif %}
bgneal@1 52 {% endif %}
bgneal@1 53
bgneal@1 54 {% if show.bands.all %}
bgneal@1 55 With:
bgneal@1 56 {% for band in show.bands.all %}
bgneal@1 57 {% if band.url %}
bgneal@1 58 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
bgneal@1 59 {% else %}
bgneal@1 60 {{ band.name }}
bgneal@1 61 {% endif %}
bgneal@1 62 {% if not forloop.last %}
bgneal@1 63 &bull;
bgneal@1 64 {% endif %}
bgneal@1 65 {% endfor %}
bgneal@1 66 <br />
bgneal@1 67 {% endif %}
bgneal@1 68
bgneal@1 69 {% if show.notes %}
bgneal@1 70 {{ show.notes|safe }}
bgneal@1 71 {% endif %}
bgneal@1 72 </p>
bgneal@1 73 {% endfor %}
bgneal@1 74 {% else %}
bgneal@1 75 None at this time.
bgneal@1 76 {% endif %}
bgneal@1 77 <br clear="all" />
bgneal@1 78
bgneal@1 79 {% if flyerGigs %}
bgneal@1 80 <div class="thumb-box">
bgneal@1 81 <h2>Flyers</h2>
bgneal@1 82 <table align="center" border="0">
bgneal@1 83 <tr><td>
bgneal@1 84 {% for gig in flyerGigs %}
bgneal@1 85 <table class="image-table">
bgneal@1 86 <caption>{{ gig.venue.name}}, {{ gig.date|date:"F 'y" }}</caption>
bgneal@1 87 <tr><td>
bgneal@1 88 <a href="{{ gig.flyer.image.url }}" class="thickbox" rel="madeira-gallery">
bgneal@1 89 <img src="{{ gig.flyer.get_thumbnail_url }}" alt="{{ gig.date|date:"F d, Y" }}" title="{{ gig.date|date:"F d, Y" }}" /></a>
bgneal@1 90 </td></tr>
bgneal@1 91 </table>
bgneal@1 92 {% endfor %}
bgneal@1 93 </td></tr>
bgneal@1 94 </table>
bgneal@1 95 <div clear="all"></div>
bgneal@1 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>
bgneal@1 97 </div>
bgneal@1 98 {% endif %}
bgneal@1 99
bgneal@1 100 {% if previous %}
bgneal@1 101 <h2>Previous Shows</h2>
bgneal@1 102 <center>
bgneal@1 103 <table border="0" cellpadding="3" cellspacing="3" width="95%">
bgneal@1 104 <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 105 {% for show in previous %}
bgneal@1 106 <tr>
bgneal@1 107 <td width="20%">{{ show.date|date:"M d, Y" }}</td>
bgneal@1 108 <td width="40%">
bgneal@1 109 {% if show.title and show.url %}
bgneal@1 110 <a href="{{ show.url }}" target="_blank">{{ show.title }}</a>,
bgneal@1 111 {% else %}
bgneal@1 112 {% if show.title %}
bgneal@1 113 {{ show.title }},
bgneal@1 114 {% endif %}
bgneal@1 115 {% endif %}
bgneal@1 116 {% if show.venue.url %}
bgneal@1 117 <a href="{{ show.venue.url }}" target="_blank">{{ show.venue.name }}</a>,
bgneal@1 118 {% else %}
bgneal@1 119 {{ show.venue.name }},
bgneal@1 120 {% endif %}
bgneal@1 121 {{ show.venue.city.name }}, {{ show.venue.city.state.abbrev }}
bgneal@1 122 </td>
bgneal@1 123 <td width="40%">
bgneal@1 124 {% for band in show.bands.all %}
bgneal@1 125 {% if band.url %}
bgneal@1 126 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
bgneal@1 127 {% else %}
bgneal@1 128 {{ band.name }}
bgneal@1 129 {% endif %}
bgneal@1 130 {% if not forloop.last %}
bgneal@1 131 &bull;
bgneal@1 132 {% endif %}
bgneal@1 133 {% endfor %}
bgneal@1 134 </td>
bgneal@1 135 </tr>
bgneal@1 136 {% endfor %}
bgneal@1 137 </table>
bgneal@1 138 </center>
bgneal@1 139 {% endif %}
bgneal@1 140
bgneal@1 141 {% if stats %}
bgneal@1 142 <h2>Past Show Statistics</h2>
bgneal@1 143 <table border="0" cellpadding="3" cellspacing="3">
bgneal@1 144 <tr><th align="left">Number of shows:</th><td>{{ stats.count }}</td></tr>
bgneal@1 145 <tr><th align="left">Number of unique venues:</th><td>{{ stats.venues }}</td></tr>
bgneal@1 146 <tr><th align="left">Number of unique cities:</th><td>{{ stats.cities }}</td></tr>
bgneal@1 147 <tr><th align="left">Number of unique states:</th><td>{{ stats.states }}</td></tr>
bgneal@1 148 <tr><th align="left">Number of unique bands:</th><td>{{ stats.bands }}</td></tr>
bgneal@1 149 </table>
bgneal@1 150 {% endif %}
bgneal@1 151
bgneal@1 152 {% endblock %}