Skip to content
Snippets Groups Projects
Verified Commit 7d8393f2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add title; make map bigger.

parent 94a554c6
No related branches found
No related tags found
No related merge requests found
......@@ -50,3 +50,7 @@ img.person-img {
.full-width {
width: 100%;
}
.leaflet-container#map {
min-height: 700px;
}
......@@ -2,7 +2,7 @@
{% load bootstrap3 i18n leaflet_tags staticfiles %}
{% block person_content %}
<h2>{% blocktrans %}Karte{% endblocktrans %}</h2>
<h2>{% blocktrans %}Karte{% endblocktrans %}: {{ title }}</h2>
{% leaflet_map "map" callback="map_init" %}
......
......@@ -92,6 +92,14 @@ def map(request):
# Get group CN
group_cn = request.GET.get('group_cn', '')
# Load group
group = TeckidsGroup.objects.get(cn=group_cn)
if not may_see_group(group, request.user):
return HttpResponse(status=403)
# Pass title for heading in template
context['title'] = group.display_name
# Generate GeoJSON endpoint
context['geojson'] = '%s?%s' % (reverse('persons_by_group', args=[group_cn]), 'format=geojson')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment