From aa9e68e121a5f02615451ed0e0c0b0e328a8cd15 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Thu, 28 Oct 2021 10:46:00 -0400 Subject: [PATCH] Tweak preformatted block styling --- netbox/project-static/dist/netbox-dark.css | Bin 788776 -> 788877 bytes netbox/project-static/dist/netbox-light.css | Bin 493600 -> 493633 bytes netbox/project-static/dist/netbox-print.css | Bin 1623462 -> 1623705 bytes netbox/project-static/styles/netbox.scss | 11 +++++++++++ netbox/project-static/styles/overrides.scss | 4 ---- netbox/templates/500.html | 2 +- netbox/templates/dcim/platform.html | 2 +- .../extras/inc/configcontext_data.html | 2 +- netbox/templates/extras/script.html | 2 +- netbox/templates/extras/script_result.html | 4 ++-- 10 files changed, 17 insertions(+), 10 deletions(-) diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index b06cca0a11d640e5d728a81d25e0745825aa204a..d98f6539c49584229e74662dc40241be9edaf1dc 100644 GIT binary patch delta 107 zcmZ26$)I<#K|>2;3sVbo3rh=Y3tJ0&3&$2t|31F*jLec$-Qt483^y`-G{2;3sVbo3rh=Y3tJ0&3&$2t|32x0#FUiGymTwWqSRdL@{G)qRNdl& x#NF7M3lnldtoaXJnS7>J}FyCZ}2z6s5L{-eBD>dV?)=okmHD z0#KkjH?b%^Gfy`uzoaBT*UF$4D5jT`lb@VjU67cPl9`u2{bD|g`1A=4>|E1NUuX5+ Kp4G;_jS&FGLMi?L delta 78 zcmV-U0I~nUkRG6r9)N@agaU*Egaot&lh+$?VPs@!Zf80%a%F8hcW7yJWi4}XVPj=F kaB`PXnF14+5QGN`mq3OGONXP^1-GNu22`%Mi-rfb0gp@`6951J diff --git a/netbox/project-static/dist/netbox-print.css b/netbox/project-static/dist/netbox-print.css index 7e565c3d5be6b900a59495cd008ed04c0bad79ad..4a42224884e0cb50be5f48cd653af7b65df86dd2 100644 GIT binary patch delta 175 zcmZ41ojkKQxuJ!zg{g(Pg{6hHg{_6Xg`QTP( zjLec$-Qt48QU)} z#FUiGymTwWqSRdL@{G)qRNdl&#N elements to make text smaller. diff --git a/netbox/templates/500.html b/netbox/templates/500.html index 097699ffc..6cface941 100644 --- a/netbox/templates/500.html +++ b/netbox/templates/500.html @@ -26,7 +26,7 @@

The complete exception is provided below:

-
{{ exception }}
+
{{ exception }}
{{ error }} Python version: {{ python_version }} diff --git a/netbox/templates/dcim/platform.html b/netbox/templates/dcim/platform.html index 8cd26a116..a926c4ed4 100644 --- a/netbox/templates/dcim/platform.html +++ b/netbox/templates/dcim/platform.html @@ -64,7 +64,7 @@ NAPALM Arguments
-
{{ object.napalm_args }}
+
{{ object.napalm_args|render_json }}
{% include 'inc/panels/custom_fields.html' %} diff --git a/netbox/templates/extras/inc/configcontext_data.html b/netbox/templates/extras/inc/configcontext_data.html index 085887748..48ca18543 100644 --- a/netbox/templates/extras/inc/configcontext_data.html +++ b/netbox/templates/extras/inc/configcontext_data.html @@ -1,5 +1,5 @@ {% load helpers %}
-
{% if format == 'json' %}{{ data|render_json }}{% elif format == 'yaml' %}{{ data|render_yaml }}{% else %}{{ data }}{% endif %}
+
{% if format == 'json' %}{{ data|render_json }}{% elif format == 'yaml' %}{{ data|render_yaml }}{% else %}{{ data }}{% endif %}
diff --git a/netbox/templates/extras/script.html b/netbox/templates/extras/script.html index 3a50e09a1..bb2b83360 100644 --- a/netbox/templates/extras/script.html +++ b/netbox/templates/extras/script.html @@ -69,7 +69,7 @@
{{ script.filename }} -
{{ script.source }}
+
{{ script.source }}
{% endblock content-wrapper %} diff --git a/netbox/templates/extras/script_result.html b/netbox/templates/extras/script_result.html index f463b0f2c..3cbd0c611 100644 --- a/netbox/templates/extras/script_result.html +++ b/netbox/templates/extras/script_result.html @@ -102,11 +102,11 @@ {% endif %}
-
{{ result.data.output }}
+
{{ result.data.output }}

{{ script.filename }}

-
{{ script.source }}
+
{{ script.source }}
{% endblock content-wrapper %}