[Qa-jenkins-scm] [jenkins.debian.net] 01/01: provide anchors to target sections of the front page

Holger Levsen holger at moszumanska.debian.org
Thu Jun 4 09:07:32 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 bcba6e61cda6094a1228fe1bd9b942cfc2036d81
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Wed Jun 3 22:40:09 2015 -0400

    provide anchors to target sections of the front page
    
    This patch makes it easier to point people at the list of variations
    and the list of usertagged bugs.  It also uses css to make the
    targeted sections have a different header color (i'm happy for more
    style-y people to improve on this visual cue).
---
 bin/reproducible_html_graphs.sh           | 4 ++--
 userContent/reproducible/static/style.css | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index bd128da..b7114f2 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -367,7 +367,7 @@ write_usertag_table() {
 			let "COUNT+=1"
 			VALUE=$(echo $RESULT | cut -d "|" -f$COUNT)
 			if [ $COUNT -eq 1 ] ; then
-				write_page "<table class=\"main\"><tr><th>Usertagged bugs</th><th>Open</th><th>Done</th><th>Total</th></tr>"
+				write_page "<table class=\"main\" id=\"usertagged-bugs\"><tr><th>Usertagged bugs</th><th>Open</th><th>Done</th><th>Total</th></tr>"
 			elif [ $((COUNT%2)) -eq 0 ] ; then
 				write_page "<tr><td><a href=\"https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=${FIELD:5};users=reproducible-builds at lists.alioth.debian.org&archive=both\">${FIELD:5}</a></td><td>$VALUE</td>"
 				TOTAL=$VALUE
@@ -600,7 +600,7 @@ create_main_stats_page() {
 	done
 	# explain setup
 	write_page "</p><p style=\"clear:both;\">"
-	write_page "<table class=\"main\"><tr><th>variation</th><th>first build</th><th>second build</th></tr>"
+	write_page "<table class=\"main\" id=\"variation\"><tr><th>variation</th><th>first build</th><th>second build</th></tr>"
 	write_page "<tr><td>hostname</td><td>$(hostname)</td><td>i-capture-the-hostname</td></tr>"
 	write_page "<tr><td>domainname</td><td>$(hostname -d)</td><td>i-capture-the-domainname</td></tr>"
 	write_page "<tr><td>env BUILDUSERID</td><td>BUILDUSERID=\"1111\"</td><td>BUILDUSERID=\"2222\"</td></tr>"
diff --git a/userContent/reproducible/static/style.css b/userContent/reproducible/static/style.css
index 5bb7ed9..0453bc4 100644
--- a/userContent/reproducible/static/style.css
+++ b/userContent/reproducible/static/style.css
@@ -218,6 +218,12 @@ th {
 	padding: 0.5em;
 }
 
+table:target th {
+    background: #ffb;
+}
+
+
+
 iframe#main {
 	margin: 0;
 	width: 100%;

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