|
@@ -1,5 +1,6 @@
|
|
|
{% extends base_template %}
|
|
{% extends base_template %}
|
|
|
{% load helpers %}
|
|
{% load helpers %}
|
|
|
|
|
+{% load static %}
|
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - Config Context{% endblock %}
|
|
{% block title %}{{ block.super }} - Config Context{% endblock %}
|
|
|
|
|
|
|
@@ -9,9 +10,10 @@
|
|
|
<div class="panel panel-default">
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
<div class="panel-heading">
|
|
|
<strong>Rendered Context</strong>
|
|
<strong>Rendered Context</strong>
|
|
|
|
|
+ {% include 'extras/inc/configcontext_format.html' %}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
|
- <pre>{{ rendered_context|render_json }}</pre>
|
|
|
|
|
|
|
+ {% include 'extras/inc/configcontext_data.html' with data=rendered_context %}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -22,7 +24,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
|
{% if obj.local_context_data %}
|
|
{% if obj.local_context_data %}
|
|
|
- <pre>{{ obj.local_context_data|render_json }}</pre>
|
|
|
|
|
|
|
+ {% include 'extras/inc/configcontext_data.html' with data=obj.local_context_data %}
|
|
|
{% else %}
|
|
{% else %}
|
|
|
<span class="text-muted">None</span>
|
|
<span class="text-muted">None</span>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -47,7 +49,7 @@
|
|
|
{% if context.description %}
|
|
{% if context.description %}
|
|
|
<br /><small>{{ context.description }}</small>
|
|
<br /><small>{{ context.description }}</small>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
- <pre>{{ context.data|render_json }}</pre>
|
|
|
|
|
|
|
+ {% include 'extras/inc/configcontext_data.html' with data=context.data %}
|
|
|
</div>
|
|
</div>
|
|
|
{% empty %}
|
|
{% empty %}
|
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
@@ -58,3 +60,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
+
|
|
|
|
|
+{% block javascript %}
|
|
|
|
|
+<script src="{% static 'js/configcontext.js' %}?v{{ settings.VERSION }}"></script>
|
|
|
|
|
+{% endblock %}
|