summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2024-01-09 13:45:55 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2024-01-09 13:47:42 +0100
commit0f49c2cac2f898e781877aee64ec2ec844d33010 (patch)
tree2e0b06e3bdd6d51d453659d1419fe4bd2a595592
parent0552741179f8a985d5fe559a7efec64be2ef6f97 (diff)
Provide the PPA in the retrigger linkHEADmain
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--app.py1
-rw-r--r--templates/browse-results.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/app.py b/app.py
index a07760c..417beee 100644
--- a/app.py
+++ b/app.py
@@ -169,6 +169,7 @@ def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH):
title_suffix=f"{LPUSER} {PPA} {PACKAGE}",
base_url="https://autopkgtest.ubuntu.com/",
static_url="/static",
+ ppa=f"{LPUSER}/{PPA}",
)
@app.route("/favicon.ico")
diff --git a/templates/browse-results.html b/templates/browse-results.html
index 7fc194a..f55501c 100644
--- a/templates/browse-results.html
+++ b/templates/browse-results.html
@@ -26,7 +26,7 @@
<a href="{{row[6]}}/artifacts.tar.gz">artifacts</a> &emsp;
{% if row[7] %}
{% set ts = row[1].split()|map('urlencode')|join("&trigger=")|safe %}
- <a href="{{base_url}}request.cgi?release={{release}}&arch={{arch}}&package={{package|urlencode}}&trigger={{ts}}">&#9851;</a>
+ <a href="{{base_url}}request.cgi?release={{release}}&arch={{arch}}&package={{package|urlencode}}&trigger={{ts}}&ppa={{ppa|urlencode}}">&#9851;</a>
{% endif %}
</td>
</tr>