From 5a9a15fffe3b08305e299f83f20c56c719cc4371 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laura=20Kl=C3=BCnder?=
Date: Sat, 15 Jul 2017 16:39:23 +0200
Subject: [PATCH] link to graph_edit view
---
.../editor/templates/editor/fragment_child_models.html | 7 +++++++
src/c3nav/editor/templates/editor/level.html | 3 ++-
src/c3nav/editor/templates/editor/space.html | 3 ++-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/c3nav/editor/templates/editor/fragment_child_models.html b/src/c3nav/editor/templates/editor/fragment_child_models.html
index 35d7b6f3..5e75a82d 100644
--- a/src/c3nav/editor/templates/editor/fragment_child_models.html
+++ b/src/c3nav/editor/templates/editor/fragment_child_models.html
@@ -1,3 +1,5 @@
+{% load i18n %}
+
diff --git a/src/c3nav/editor/templates/editor/level.html b/src/c3nav/editor/templates/editor/level.html
index 9cf643bf..890012ca 100644
--- a/src/c3nav/editor/templates/editor/level.html
+++ b/src/c3nav/editor/templates/editor/level.html
@@ -25,7 +25,8 @@
{% bootstrap_messages %}
-{% include 'editor/fragment_child_models.html' %}
+{% url 'editor.levels.graph' level=level.pk as graph_url %}
+{% include 'editor/fragment_child_models.html' with graph_url=graph_url %}
diff --git a/src/c3nav/editor/templates/editor/space.html b/src/c3nav/editor/templates/editor/space.html
index cad93e75..8b949775 100644
--- a/src/c3nav/editor/templates/editor/space.html
+++ b/src/c3nav/editor/templates/editor/space.html
@@ -14,4 +14,5 @@
{% bootstrap_messages %}
-{% include 'editor/fragment_child_models.html' %}
+{% url 'editor.spaces.graph' space=space.pk as graph_url %}
+{% include 'editor/fragment_child_models.html' with graph_url=graph_url %}