Closes #4421: Retain user's preference for config context format

This commit is contained in:
Jeremy Stretch
2020-04-24 12:01:41 -04:00
parent f019c8d2ce
commit bdbf21b3e2
7 changed files with 26 additions and 32 deletions

View File

@@ -13,7 +13,7 @@
{% include 'extras/inc/configcontext_format.html' %}
</div>
<div class="panel-body">
{% include 'extras/inc/configcontext_data.html' with data=rendered_context %}
{% include 'extras/inc/configcontext_data.html' with data=rendered_context format=format %}
</div>
</div>
</div>
@@ -24,7 +24,7 @@
</div>
<div class="panel-body">
{% if obj.local_context_data %}
{% include 'extras/inc/configcontext_data.html' with data=obj.local_context_data %}
{% include 'extras/inc/configcontext_data.html' with data=obj.local_context_data format=format %}
{% else %}
<span class="text-muted">None</span>
{% endif %}
@@ -49,7 +49,7 @@
{% if context.description %}
<br /><small>{{ context.description }}</small>
{% endif %}
{% include 'extras/inc/configcontext_data.html' with data=context.data %}
{% include 'extras/inc/configcontext_data.html' with data=context.data format=format %}
</div>
{% empty %}
<div class="panel-body">
@@ -60,7 +60,3 @@
</div>
</div>
{% endblock %}
{% block javascript %}
<script src="{% static 'js/configcontext.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}