From 140131829c4caac45d6155184b2308c0c9fc3c27 Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Sun, 5 Oct 2025 14:16:04 +0300 Subject: [PATCH] add tag copy_content and id 'job_data_output' --- netbox/templates/extras/htmx/script_result.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netbox/templates/extras/htmx/script_result.html b/netbox/templates/extras/htmx/script_result.html index ac5d87ef28f..3844c785742 100644 --- a/netbox/templates/extras/htmx/script_result.html +++ b/netbox/templates/extras/htmx/script_result.html @@ -44,8 +44,8 @@

{% trans "Log" %}

+ hx-trigger="load" hx-select=".htmx-container" hx-swap="outerHTML"> + {% endif %} @@ -60,11 +60,12 @@

{% trans "Download" %} + {% copy_content "job_data_output" %} {% endif %}

{% if job.data.output %} -
{{ job.data.output }}
+
{{ job.data.output }}
{% else %}
{% trans "None" %}
{% endif %}