mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 04:56:29 -06:00
Hide code blocks when not needed
This commit is contained in:
parent
1e42fecf66
commit
416caa8f50
@ -137,7 +137,11 @@
|
||||
Additional Headers
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<pre>{{ object.additional_headers }}</pre>
|
||||
{% if object.additional_headers %}
|
||||
<pre>{{ object.additional_headers }}</pre>
|
||||
{% else %}
|
||||
<span class="text-muted">None</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
@ -145,7 +149,11 @@
|
||||
Body Template
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<pre>{{ object.body_template }}</pre>
|
||||
{% if object.body_template %}
|
||||
<pre>{{ object.body_template }}</pre>
|
||||
{% else %}
|
||||
<span class="text-muted">None</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% plugin_right_page object %}
|
||||
|
Loading…
Reference in New Issue
Block a user