Permalink
Browse files

fixed map to show if centres but no results.

  • Loading branch information...
1 parent 250ef89 commit 966805149d6dc2b7f054571a3b57d1b70fc3bf30 Derek Hoy committed May 26, 2012
@@ -60,7 +60,7 @@ def detail(request, object_id, template_name='accounts/accounts_detail.html', ne
'pt_results': pt_results,
'centres': centres,
'google_key': settings.GOOGLE_KEY,
- 'show_map': pt_results,
+ 'show_map': centres or pt_results,
'next': next or '%s?page=%s' % (reverse('accounts_detail', args=[account.id]), curations.number)
}
return render_to_response(
@@ -1,7 +1,7 @@
{# Just needs rev_url set to work for Resource or Account #}
{% load utils depot_tags markup %}
{% load url from future %}
- {% if pt_results %}
+ {% if centres or pt_results %}
mapstraction = new mxn.Mapstraction('map','google');
//mapstraction = new mxn.Mapstraction('map','openlayers');

0 comments on commit 9668051

Please sign in to comment.