# HG changeset patch # User Chris Ridgway # Date 1321334278 21600 # Node ID c3b4884fe4ea9e005eda745a88c3260c6e15b1c5 # Parent 98cc19041d8f94d7794c3365ee217b7d9ad17d96 Added some band images to the Bands page. Note, this requires you to "loaddata bands.json" to install asset information. Added a fancy box effect to the Band images (click to see larger image). diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/bands/fixtures/bands.json --- a/bns_website/bands/fixtures/bands.json Mon Nov 14 19:55:14 2011 -0600 +++ b/bns_website/bands/fixtures/bands.json Mon Nov 14 23:17:58 2011 -0600 @@ -6,6 +6,7 @@ "url": "http://www.myspace.com/elsupernaut", "notes": "El Supernaut is a new band from Finland (the home of the legendary Laika & the Cosmonauts) that grew out of another surf/instro band, the Lunatics. The band members\u2019 prior experience was obvious in their confident and powerful debut \u201cViva!,\u201d released in early 2011 and packed full of stunning musicianship. El Supernaut have a deep love for the hard rock of the 1970s and 1980s, which they freely incorporate into their sound. As their slogan says, pure instro rock!", "name": "El Supernaut", + "asset_prefix": "elsupernaut", "order": 0 } }, @@ -15,7 +16,8 @@ "fields": { "url": "http://www.twang-marvels.de/", "notes": "Los Twang! Marvels, based in Berlin, Germany, has an Argentinian lead guitarist (who was taught by King Crimson\u2019s Robert Fripp!), and Chilean rhythm guitarist (also taught by Fripp!) and drummer. Their diverse backgrounds result in an exotic sound that is full of passion, virtuosity, precision, and fun, all in evidence on their two full-length CDs: 2005\u2019s debut, \u201cGuitars in Orbit\u201d and 2008\u2019s epic, \u201cJungle of Twang.\u201d They have toured throughout Europe and Mexico.", - "name": "Los Twang! Marvels", + "name": "Los Twang! Marvels", + "asset_prefix": "lostwangmarvels", "order": 1 } }, @@ -25,7 +27,8 @@ "fields": { "url": "http://www.elray.dk/", "notes": "El Ray is a Danish band with a diverse approach to surf music, reflecting their alternative rock influences. They just celebrated their 10th anniversary, having had a highly productive career so far with four CDs and one best-of compilation. Their most recent release is the phenomenal \u201cChasing Ray\u201d from 2010. El Ray have toured much of Europe, making a particularly strong impression with their appearance at 2010\u2019s Surfer Joe Festival in Livorno, Italy.", - "name": "El Ray", + "name": "El Ray", + "asset_prefix": "el_ray", "order": 2 } }, @@ -36,6 +39,7 @@ "url": "http://www.coffindaggers.com/", "notes": "The Coffin Daggers emerged from New York City\u2019s punk scene. Not surprisingly, their take on surf music is marked by a metropolitan attitude and a gritty toughness. They have released two CDs, 2011\u2019s hard-hitting and diverse \u201dMonsters from the ID\u201d being their most recent, notable for being recorded and mixed on tape \u2013 a true rarity today in any genre. The band toured Europe in 2005 and twice in 2006. Since then, they have been regularly criss-crossing the US, picking up fans far and wide.", "name": "The Coffin Daggers", + "asset_prefix": "coffindaggers", "order": 3 } }, @@ -45,7 +49,7 @@ "fields": { "url": "http://www.aqualads.com/", "notes": "Aqualads, based in Charlotte, NC, have been together since 1997. They released three CDs between 1998 and 2004, chock full of traditional surf: \u201cHotbox,\u201d \u201cRevenge,\u201d and \u201cSurf Surf Surf.\u201d After some downtime, they returned with a vengeance in 2011 with the astonishing \u201cTreasures\u201d (produced by Rick Miller of Southern Culture on the Skids), which firmly established them as one of the hottest American surf bands today. They are now playing throughout the South, hell-bent on making up for the lost time.", - "name": "Aqualads", + "name": "Aqualads", "order": 4 } }, @@ -75,7 +79,8 @@ "fields": { "url": "http://www.atomicmosquitos.com/", "notes": "Atomic Mosquitos were inspired by their Washington, DC predecessors, Insect Surfers and The Space Cossacks, along with many others, when they formed in 2000. Since then, they have released three CDs: 2002\u2019s self-titled debut, 2005\u2019s \u201cRelease the Mosquitos,\u201d and 2008\u2019s \u201cMeltdown.\u201d Through the years they evolved a distinctive complex-yet-tight sound marked by the contrasting styles of their two lead guitar players and three songwriters. Though they primarily play on the central East Coast, they did venture out west for an appearance at the 2010 SG101 Convention in Los Alamitos, CA.", - "name": "Atomic Mosquitos", + "name": "Atomic Mosquitos", + "asset_prefix": "atomic_mosquitos", "order": 7 } }, @@ -145,7 +150,8 @@ "fields": { "url": "http://themadeira.net/", "notes": "The Madeira is based out of Indianapolis, IN and has been around since 2004, releasing two CDs with a third on the way. They\u2019ve played all around the US, including two California tours as well as shows on the East Coast and in the South, but primarily play around the Midwest. They headlined the third night of the 2009 Surfer Joe Festival, followed by an Italian tour. Their 2008 CD, \u201cCarpe Noctem,\u201d was selected Album of the Year by Pipeline magazine.", - "name": "The Madeira", + "name": "The Madeira", + "asset_prefix": "madeira", "order": 14 } }, @@ -176,6 +182,7 @@ "url": "http://www.reverbnation.com/thedeadbeats63", "notes": "The Deadbeats have the distinction of being the youngest band on this compilation, all four of them currently in their early 20s. Their mix of youthful energy and highly skilled musicianship has made them a popular draw in teen punk clubs around the San Francisco Bay area for the past few years. Their inspired and impressive debut mini-CD \u201cDay of the Deadbeats\u201d came out this past summer, and they subsequently blew everyone away at the SG101 Convention with a performance that is sure to go down in legend.", "name": "The Deadbeats", + "asset_prefix": "deadbeats", "order": 17 } }, @@ -186,6 +193,7 @@ "url": "http://daikaiju.org/", "notes": "Daikaiju have been forging a radically new and futuristic path in surf music since forming in 1999 in Alabama. The very embodiment of progressive surf music, they recognize no boundaries and are fearless about introducing a diverse set of influences \u2013 from Rush to My Bloody Valentine\u2013 into their highly personal musical vision. The out-of-this world results can be heard on 2004\u2019s self-titled debut and its remarkable 2010 follow-up, \u201cPhase 2.\u201d They have toured Europe twice, and in the last couple of years began touring the US heavily, averaging 200-250 shows each year. Their live shows are pure performance art, incorporating theatrical and even confrontational elements, the band wearing kabuki masks and sci-fi uniforms, and spending more time running among and interacting with the audience than on stage!", "name": "Daikaiju", + "asset_prefix": "daikaiju", "order": 18 } }, diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/bands/models.py --- a/bns_website/bands/models.py Mon Nov 14 19:55:14 2011 -0600 +++ b/bns_website/bands/models.py Mon Nov 14 23:17:58 2011 -0600 @@ -13,6 +13,7 @@ name = models.CharField(max_length=128) url = models.URLField(verify_exists=False, max_length=200) notes = models.TextField() + asset_prefix = models.CharField(max_length=64, blank=True) order = models.IntegerField(default=0) class Meta: diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/atomic_mosquitos_large.jpg Binary file bns_website/static/images/bands/atomic_mosquitos_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/atomic_mosquitos_small.jpg Binary file bns_website/static/images/bands/atomic_mosquitos_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/coffindaggers_large.jpg Binary file bns_website/static/images/bands/coffindaggers_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/coffindaggers_small.jpg Binary file bns_website/static/images/bands/coffindaggers_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/daikaiju_large.jpg Binary file bns_website/static/images/bands/daikaiju_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/daikaiju_small.jpg Binary file bns_website/static/images/bands/daikaiju_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/deadbeats_large.jpg Binary file bns_website/static/images/bands/deadbeats_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/deadbeats_small.jpg Binary file bns_website/static/images/bands/deadbeats_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/el_ray_large.jpg Binary file bns_website/static/images/bands/el_ray_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/el_ray_small.jpg Binary file bns_website/static/images/bands/el_ray_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/elsupernaut_large.jpg Binary file bns_website/static/images/bands/elsupernaut_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/elsupernaut_small.jpg Binary file bns_website/static/images/bands/elsupernaut_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/los_kahunas_large.jpg Binary file bns_website/static/images/bands/los_kahunas_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/los_kahunas_small.jpg Binary file bns_website/static/images/bands/los_kahunas_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/lostwangmarvels_large.jpg Binary file bns_website/static/images/bands/lostwangmarvels_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/lostwangmarvels_small.jpg Binary file bns_website/static/images/bands/lostwangmarvels_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/madeira_large.jpg Binary file bns_website/static/images/bands/madeira_large.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/static/images/bands/madeira_small.jpg Binary file bns_website/static/images/bands/madeira_small.jpg has changed diff -r 98cc19041d8f -r c3b4884fe4ea bns_website/templates/bands/band_list.html --- a/bns_website/templates/bands/band_list.html Mon Nov 14 19:55:14 2011 -0600 +++ b/bns_website/templates/bands/band_list.html Mon Nov 14 23:17:58 2011 -0600 @@ -4,12 +4,17 @@ {% block custom_css %} + + {% endblock %} {% block custom_js %} + - {% endblock %} {% block content %} @@ -41,13 +51,21 @@
- + {% if band.asset_prefix %} + + {{ band.name }} + + {% else %} + + {% endif %}

{{ band.name }}


{{ band.notes }} -

Band Site

+ {% if band.url %} +

Band Site

+ {% endif %}