+
+def pin_map(request):
+ return render(request, 'references/map.html', {
+ 'title': 'Wakacje',
+ 'entities': models.Entity.objects.exclude(lat=None).exclude(lon=None),
+ 'funding_no_show_current': True,
+ })
+
+def pin_map_tagged(request, tags):
+ try:
+ tags = analyse_tags(request, tags)
+ except:
+ raise #Http404()
+
+ books = Book.tagged.with_all(tags)
+
+ return render(request, 'references/map.html', {
+ 'entities': models.Entity.objects.exclude(lat=None).exclude(lon=None).filter(reference__book__in=books).distinct(),
+ 'funding_no_show_current': True,
+ })
+
+
+def popup(request, pk):
+ e = get_object_or_404(models.Entity, pk=pk)
+ return render(request, 'references/popup.html', {
+ 'entity': e,
+ })
+