# HG changeset patch # User Brian Neal # Date 1411954977 18000 # Node ID 0f9c014c8adce84598ec9ddd012f95a4e721ca04 # Parent b9973588af28b8a29f59be22daacd9e2bea71c95 Bandmap: don't need to send URL to javascript client. Also tweaking note as I am noticing it isn't getting rendered correctly on all bands for some reason. diff -r b9973588af28 -r 0f9c014c8adc bandmap/views.py --- a/bandmap/views.py Sun Sep 28 15:23:15 2014 -0500 +++ b/bandmap/views.py Sun Sep 28 20:42:57 2014 -0500 @@ -66,13 +66,14 @@ bands = [] for band in qs.iterator(): + note = render_to_string('bandmap/balloon.html', {'band': band}) + note = note.strip().replace('\n', '') bands.append({ 'name': band.name, - 'url': band.url, 'lat': band.lat, 'lon': band.lon, 'is_active': band.is_active, - 'note': render_to_string('bandmap/balloon.html', {'band': band}), + 'note': note, }) results = json.dumps(bands) diff -r b9973588af28 -r 0f9c014c8adc sg101/templates/bandmap/balloon.html --- a/sg101/templates/bandmap/balloon.html Sun Sep 28 15:23:15 2014 -0500 +++ b/sg101/templates/bandmap/balloon.html Sun Sep 28 20:42:57 2014 -0500 @@ -4,12 +4,7 @@ {% else %} {{ band.name }} {% endif %} - -{% if band.is_active %} -(Active) -{% else %} -(Inactive) +{% if band.note %} +
{{ band.note }} {% endif %} -

-{{ band.note }}