summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-07 14:41:28 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-07 14:41:28 +0100
commitaf2d7673e79fe0464b05af3c6c5b91ef9847b3f0 (patch)
tree6e9b58e46d02df3d23d7770b73b4bab14982382a /bin/reproducible_common.py
parent46c32a7c6f850ce8cb7e384c6bb91ddbc48c9d79 (diff)
downloadjenkins.debian.net-af2d7673e79fe0464b05af3c6c5b91ef9847b3f0.tar.xz
reproducible: use same footer for .sh and .py pages
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py23
1 files changed, 18 insertions, 5 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 52f6d09a..01e5332f 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -135,20 +135,33 @@ html_header = Template("""<!DOCTYPE html>
<title>$page_title</title>
</head>
<body $padding>""")
+
+if os.environ['JOB_URL'] == '':
+ JOB_FOOTER=''
+else:
+ JOB_URL = os.environ['JOB_URL']
+ JOB_NAME = os.path.basename(JOB_URL[:-1])
+ JOB_FOOTER = 'This page was built by the jenkins job <a href="'+JOB_URL+'">'
+ JOB_FOOTER += JOB_NAME+'</a> which is configured via this '
+ JOB_FOOTER += '<a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/">git repo</a>.'
+
html_footer = Template("""
- <hr />
- <p style="font-size:0.9em;">
+ <hr id="footer_separator" /><p style="font-size:0.9em;"><div id="page_footer">
+ %s
There is more information <a href="%s/userContent/about.html">about
jenkins.debian.net</a> and about
<a href="https://wiki.debian.org/ReproducibleBuilds"> reproducible builds
- of Debian</a> available elsewhere. Last update: $date.
- Copyright 2014-2016 <a href="mailto:holger@layer-acht.org">Holger Levsen</a> and others,
+ of Debian</a> available elsewhere.
+ <br /> Last update: $date.
+ Copyright 2014-2016 <a href="mailto:holger@layer-acht.org">Holger Levsen</a>
+ and <a href="https://jenkins.debian.net//userContent/thanks.html">many others</a>.
+ The code of <a href="http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/">jenkins.debian.net.git</a> is mostly
GPL-2 licensed. The weather icons are public domain and have been taken
from the <a href=http://tango.freedesktop.org/Tango_Icon_Library target=_blank>
Tango Icon Library</a>.
</p>
</body>
-</html>""" % (JENKINS_URL))
+</html>""" % (JOB_FOOTER, JENKINS_URL))
html_head_page = Template((tab*2).join("""
<header>