add level control to map editor

This commit is contained in:
Laura Klünder 2016-08-21 19:22:16 +02:00
parent a546d27efa
commit bc29193c7b
3 changed files with 32 additions and 1 deletions

View file

@ -17,5 +17,6 @@ def editor(request, level=None):
if level not in mapmanager.levels:
raise Http404('Level does not exist')
return render(request, 'control/editor.html', {
'map': mapmanager
'map': mapmanager,
'current_level': level,
})