link to graph_edit view

This commit is contained in:
Laura Klünder 2017-07-15 16:39:23 +02:00
parent 66dabb3787
commit 5a9a15fffe
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,5 @@
{% load i18n %}
<div class="list-group">
{% for model in child_models %}
<a href="{{ model.url }}" class="list-group-item">
@ -5,4 +7,9 @@
{{ model.title }}
</a>
{% endfor %}
{% if graph_url %}
<a href="{{ graph_url }}" class="list-group-item">
{% trans 'Graph' %}
</a>
{% endif %}
</div>

View file

@ -25,7 +25,8 @@
</p>
{% 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 %}
<div class="clearfix"></div>

View file

@ -14,4 +14,5 @@
</p>
{% 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 %}