#17653: Style JSON data for config & export templates (#19171)

This commit is contained in:
Jeremy Stretch 2025-04-14 10:25:55 -04:00 committed by GitHub
parent 3444dc503d
commit 13c6602ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -71,7 +71,11 @@
<div class="card">
<h2 class="card-header">{% trans "Environment Parameters" %}</h2>
<div class="card-body">
<pre>{{ object.environment_params }}</pre>
{% if object.environment_params %}
<pre>{{ object.environment_params|json }}</pre>
{% else %}
<span class="text-muted">{% trans "None" %}</span>
{% endif %}
</div>
</div>
{% plugin_right_page object %}

View File

@ -82,7 +82,11 @@
<div class="card">
<h2 class="card-header">{% trans "Environment Parameters" %}</h2>
<div class="card-body">
<pre>{{ object.environment_params }}</pre>
{% if object.environment_params %}
<pre>{{ object.environment_params|json }}</pre>
{% else %}
<span class="text-muted">{% trans "None" %}</span>
{% endif %}
</div>
</div>
{% plugin_right_page object %}