summaryrefslogtreecommitdiff
path: root/doc/invocations-http-server
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-25 12:33:26 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-25 13:11:59 +0200
commit0346772958c3dee8e2c2343fabaf77924ae855ec (patch)
treece3f4c95c74fe44bebf6935a1dea33e54abac1a2 /doc/invocations-http-server
parent727536b5632c8f568efd0f5354d8ac1748e0bad4 (diff)
downloadjustbuild-0346772958c3dee8e2c2343fabaf77924ae855ec.tar.gz
Invocation http server: for tree entries offer direct download links
When showing a tree, we have for each entry already a designated file name. Use this, to offer direct dowload links for blobs with the intended name.
Diffstat (limited to 'doc/invocations-http-server')
-rw-r--r--doc/invocations-http-server/templates/tree.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/invocations-http-server/templates/tree.html b/doc/invocations-http-server/templates/tree.html
index 765be73e..9135f327 100644
--- a/doc/invocations-http-server/templates/tree.html
+++ b/doc/invocations-http-server/templates/tree.html
@@ -8,7 +8,12 @@ Tree {{ name | e }}
<ul>
{% for entry in entries %}
- <li><a href="/{{ entry["type"] | e}}/{{ entry["hash"] | e}}">{{ entry["path"] | e}}</a></li>
+ <li>
+ <a href="/{{ entry["type"] | e}}/{{ entry["hash"] | e}}">{{ entry["path"] | e}}</a>
+ {% if entry["type"] == "blob" %}
+ <a href="/blob/{{ entry["hash"] | e}}/{{ entry["path"] | e}}">[&darr;]</a>
+ {% endif %}
+ </li>
{% endfor %}
</ul>
{% endblock %}