From af2d7673e79fe0464b05af3c6c5b91ef9847b3f0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 7 Jan 2016 14:41:28 +0100 Subject: reproducible: use same footer for .sh and .py pages --- bin/reproducible_common.py | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_common.py') 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(""" $page_title """) + +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 ' + JOB_FOOTER += JOB_NAME+' which is configured via this ' + JOB_FOOTER += 'git repo.' + html_footer = Template(""" -
-

+