summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-06-05 02:28:21 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-05 02:28:21 +0200
commite7c731677079df17cb93387444d5c7d0a58544db (patch)
tree5c1d061acbf917b8b5c9169bec58dd53df7a5f8e /bin
parent824905663ebb0665814c088ea00b9a2756b94914 (diff)
downloadjenkins.debian.net-e7c731677079df17cb93387444d5c7d0a58544db.tar.xz
reproducible: add pkg-submit form to dashboard (should be replaced by one without javascript)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 0bec423b..d6935c76 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -183,8 +183,10 @@ write_page_header() {
write_page "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
write_page "<link href=\"/userContent/static/style.css\" type=\"text/css\" rel=\"stylesheet\" />"
write_page "<title>$2</title></head>"
- write_page "<body><header><h2>$2</h2>"
- if [ "$1" = "$MAINVIEW" ] ; then
+ if [ "$1" != "$MAINVIEW" ] ; then
+ write_page "<body><header><h2>$2</h2>"
+ else
+ write_page "<body onload=\"selectSearch()\"><header><h2>$2</h2>"
write_page "<p>These pages are showing the <em>prospects</em> of <a href=\"https://wiki.debian.org/ReproducibleBuilds\" target=\"_blank\">reproducible builds of Debian packages</a>."
write_page " The results shown were obtained from <a href=\"$JENKINS_URL/view/reproducible\">several jobs</a> running on"
write_page " <a href=\"$JENKINS_URL/userContent/about.html#_reproducible_builds_jobs\">jenkins.debian.net</a>."
@@ -233,6 +235,11 @@ write_page_header() {
done
write_page "<li><a href=\"https://wiki.debian.org/ReproducibleBuilds\" target=\"_blank\">wiki</a></li>"
write_page "</ul>"
+ if [ "$1" = "$MAINVIEW" ] ; then
+ write_page "<form onsubmit=\"location.href='https://reproducible.debian.net/' + document.getElementById('SrcPkg').value; return false;\">"
+ write_page "https://reproducible.debian.net/<input type=\"text\" id=\"SrcPkg\" />"
+ write_page "<input type=\"submit\" value=\"submit source package name\" />"
+ fi
write_page "</header>"
}