From ec4bf35749786dc9a500e49e146a2941ac7262de Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Thu, 2 Oct 2025 23:12:51 +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 %}