summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-06 12:28:39 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-18 11:10:52 +0200
commitaea1ddebf83685e4c46b65edd877fec3bab62c4a (patch)
treebf6802e7fb8f0ecfd9c4a0db0ad1f5cbc97bb8ff
parentf5f390089d25573e27ffb0f8d4dce37bb731c1ee (diff)
downloadjustbuild-aea1ddebf83685e4c46b65edd877fec3bab62c4a.tar.gz
Invocation server: directly show only artifact
When presenting a build, the output artifacts are hidden behind a "details" environment to not overload the user with long list of, e.g., test results (especially if generated by a test matrix). If, however, only a single artifact is built, there is no reason to hide it; so simply show it.
-rw-r--r--doc/invocations-http-server/templates/invocation.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/invocations-http-server/templates/invocation.html b/doc/invocations-http-server/templates/invocation.html
index bd5915b1..2a5cc136 100644
--- a/doc/invocations-http-server/templates/invocation.html
+++ b/doc/invocations-http-server/templates/invocation.html
@@ -91,8 +91,13 @@ Invocation {{invocation | e}}
{% endif %}
{% if artifacts %}
<li>
+ {% if artifacts_count == 1 %}
+ <details open>
+ <summary open>artifact</summary>
+ {% else %}
<details>
<summary>{{ artifacts_count | e }} artifacts</summary>
+ {% endif %}
<ul>
{% for entry in artifacts %}
<li>