[Qa-jenkins-scm] [jenkins.debian.net] 06/08: reproducible debian: add template for project links in left navigation

Holger Levsen holger at layer-acht.org
Tue Jul 5 15:25:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 4ffa9b55eab852ad174732c3357efe97dcea0fcc
Author: Valerie R Young <spectranaut at riseup.net>
Date:   Wed Jun 29 16:45:30 2016 -0400

    reproducible debian: add template for project links in left navigation
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_packages.py    | 10 ++++++----
 bin/templates/project_links.mustache | 17 +++++++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 3a234cc..00bf8eb 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -17,11 +17,13 @@ apt_pkg.init_system()
 # Templates used for creating package pages
 renderer = pystache.Renderer();
 package_page_template = renderer.load_template(
-    TEMPLATE_PATH + '/package_page')
+    os.path.join(TEMPLATE_PATH, 'package_page'))
 suitearch_section_template = renderer.load_template(
-    TEMPLATE_PATH + '/package_suitearch_section')
+    os.path.join(TEMPLATE_PATH, 'package_suitearch_section'))
 suitearch_details_template = renderer.load_template(
-    TEMPLATE_PATH + '/package_suitearch_details')
+    os.path.join(TEMPLATE_PATH, 'package_suitearch_details'))
+project_links_template = renderer.load_template(
+    os.path.join(TEMPLATE_PATH, 'project_links'))
 
 def sizeof_fmt(num):
     for unit in ['B','KB','MB','GB']:
@@ -292,7 +294,7 @@ def gen_packages_html(packages, no_clean=False):
                     gen_suitearch_section(package, suite, arch)
 
                 history = '{}/{}.html'.format(HISTORY_URI, pkg)
-                project_links = html_project_links.substitute()
+                project_links = renderer.render(project_links_template)
 
                 html = renderer.render(package_page_template, {
                     'package': pkg,
diff --git a/bin/templates/project_links.mustache b/bin/templates/project_links.mustache
new file mode 100644
index 0000000..e5cbf07
--- /dev/null
+++ b/bin/templates/project_links.mustache
@@ -0,0 +1,17 @@
+<ul class="reproducible-links">
+  <li>Reproducible Builds projects links
+    <ul class="children"><li>
+        <a href="https://Reproducible-builds.org">Reproducible-builds.org</a><br />
+        Reproducible-builds.org - <a href="https://Reproducible-builds.org/docs/">HowTo</a><br />
+        Reproducible Debian - <a href="https://wiki.debian.org/ReproducibleBuilds">Wiki</a><br />
+        Reproducible builds <a href="https://reproducible.alioth.debian.org/blog/">weekly news</a><br />
+        <a href="https://reproducible-builds.org/specs/source-date-epoch/">SOURCE_DATE_EPOCH specification</a><br />
+      </li><li>
+        Reproducible <a href="https://tests.reproducible-builds.org/archlinux/">Arch Linux</a> /
+        <a href="https://tests.reproducible-builds.org/coreboot/">coreboot</a> /
+        <a href="https://tests.reproducible-builds.org/fedora/">Fedora</a> /
+        <a href="https://tests.reproducible-builds.org/freebsd/">FreeBSD</a> /
+        <a href="https://tests.reproducible-builds.org/netbsd/">NetBSD</a> /
+        <a href="https://tests.reproducible-builds.org/openwrt/">OpenWrt</a>
+  </li></ul></li>
+</ul>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list