Mercurial > public > sg101
comparison bandmap/views.py @ 830:b9973588af28
Bandmap: use green & red markers for active/inactive.
Other tweaks to admin & added explanatory text.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Sep 2014 15:23:15 -0500 |
parents | 5103edd3acc4 |
children | 0f9c014c8adc |
comparison
equal
deleted
inserted
replaced
829:5a00dcf563a8 | 830:b9973588af28 |
---|---|
69 bands.append({ | 69 bands.append({ |
70 'name': band.name, | 70 'name': band.name, |
71 'url': band.url, | 71 'url': band.url, |
72 'lat': band.lat, | 72 'lat': band.lat, |
73 'lon': band.lon, | 73 'lon': band.lon, |
74 'is_active': band.is_active, | |
74 'note': render_to_string('bandmap/balloon.html', {'band': band}), | 75 'note': render_to_string('bandmap/balloon.html', {'band': band}), |
75 }) | 76 }) |
76 results = json.dumps(bands) | 77 results = json.dumps(bands) |
77 | 78 |
78 # Store in cache | 79 # Store in cache |