summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-06-25 08:42:11 -0400
committerHolger Levsen <holger@layer-acht.org>2016-07-05 17:24:56 +0200
commit4cd9250228ad1d17f6ce01a517e8897902c96bb4 (patch)
tree9c19893f3f34339de6860cac729beaa835a23c51 /bin/reproducible_common.py
parentee75142772ff7ad5a147bd4cc6aecdf6f0f13a1c (diff)
downloadjenkins.debian.net-4cd9250228ad1d17f6ce01a517e8897902c96bb4.tar.xz
reproducible debian: add package list symbol legend template
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index c3ea23fd..d2077772 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -145,6 +145,8 @@ status_icon_link_template = renderer.load_template(
TEMPLATE_PATH + '/status_icon_link')
default_page_footer_template = renderer.load_template(
TEMPLATE_PATH + '/default_page_footer')
+pkg_legend_template = renderer.load_template(
+ TEMPLATE_PATH + '/pkg_symbol_legend')
html_header = Template("""<!DOCTYPE html>
@@ -237,19 +239,6 @@ html_head_page = Template((tab*2).join(("""
$project_links
</header><div class="mainbody">""" % DEBIAN_URL ).splitlines(True)))
-html_foot_page_style_note = Template((tab*2).join("""
-<p style="font-size:0.9em;">
- A package name displayed with a <span style="font-weight: bold;">bold font</span> is an indication that this
- package has a note. Visited packages are linked in green, those which
- have not been visited are linked in blue.<br />
- A <code><span class="bug">&#35;</span></code> sign after the name of a
- package indicates that a bug is filed against it. Likewise, a
- <code><span class="bug-patch">&#43;</span></code> sign indicates there is
- a patch available, a <code><span class="bug-pending">P</span></code> means a
- pending bug while <code><span class="bug-done">&#35;</span></code>
- indicates a closed bug. In cases of several bugs, the symbol is repeated.
-</p>""".splitlines(True)))
-
html_project_links = Template((tab*2).join("""
<ul class="reproducible-links">
<li>Reproducible Builds projects links
@@ -381,7 +370,7 @@ def write_html_page(title, body, destfile, suite=defaultsuite, arch=defaultarch,
project_links=project_links)
html += body
if style_note:
- html += html_foot_page_style_note.substitute()
+ html += renderer.render(pkg_legend_template, {})
if not noendpage:
html += create_default_page_footer(now)
html += '</body>\n</html>'