[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: improve bug indicators for packages

Holger Levsen holger at moszumanska.debian.org
Mon May 18 14:29:12 UTC 2015


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 f04334b132c84259a7d5d0592e38ab87fab5fee2
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon May 18 16:29:00 2015 +0200

    reproducible: improve bug indicators for packages
---
 bin/reproducible_common.py                | 10 ++++++----
 bin/reproducible_common.sh                |  2 +-
 userContent/reproducible/static/style.css | 11 ++++++++---
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index fc5488a..cc7789b 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -171,9 +171,11 @@ html_foot_page_style_note = Template((tab*2).join("""
   A package name displayed with a bold font 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>#</code> sign after the name of a package indicates that a bug is
-  filed against it. Likewise, a <code>+</code> means that there is bug with a
-  patch attached. In case of more than one bug, the symbol is repeated.
+  A <code><span class="bug">#</span></code> sign after the name of a
+  package indicates that a bug is filed against it. Likewise, a
+  <code><span class="bug-patch">+</span></code> sign indicates there is
+  a patch available. <code><span class="bug-done">#</span></code>
+  indicates a closed bug. In cases of several bugs, the symbol is repeated.
 </p>""".splitlines(True)))
 
 
@@ -488,7 +490,7 @@ def get_trailing_icon(package, bugs):
             elif bugs[package][bug]['patch']:
                 html += 'bug-patch" title="#' + str(bug) + ', with patch">+</span>'
             else:
-                html += '" title="#' + str(bug) + '">#</span>'
+                html += 'bug" title="#' + str(bug) + '">#</span>'
     return html
 
 
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 49a70ca..69c205a 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -238,7 +238,7 @@ write_page_footer() {
 
 write_page_meta_sign() {
 	write_page "<p style=\"font-size:0.9em;\">A package name displayed with a bold font 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>"
-	write_page " A <code>#</code> sign after the name of a package indicates that a bug is filed against it. Likewise, a <code>+</code> means that there is bug with a patch attached. In case of more than one bug, the symbol is repeated.</p>"
+	write_page "A <code><span class=\"bug\">#</span></code> sign after the name of a package indicates that a bug is filed against it. Likewise, a <code><span class=\"bug-patch\">+</span></code> sign indicates there is a patch available. <code><span class=\"bug-done\">#</span></code> indicates a closed bug. In cases of several bugs, the symbol is repeated.</p>"
 }
 
 publish_page() {
diff --git a/userContent/reproducible/static/style.css b/userContent/reproducible/static/style.css
index 13f38ca..d431d3f 100644
--- a/userContent/reproducible/static/style.css
+++ b/userContent/reproducible/static/style.css
@@ -177,17 +177,22 @@ a.bug-patch:after {
 
 a.bug-done {
 	text-decoration: line-through;
+	color: green;
 }
 
-span.bug-patch {
+span.bug {
 	color: red;
 	font-weight: bold;
 }
 
+span.bug-patch {
+	color: yellow;
+	font-weight: bold;
+}
+
 span.bug-done {
 	text-decoration: line-through;
-	font-weight: bold;
-	color: black;
+	color: green;
 }
 
 td, th {

-- 
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