[Reproducible-builds] [PATCH] provide anchors to target sections of the front page

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jun 4 02:40:09 UTC 2015


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%;
-- 
2.1.4




More information about the Reproducible-builds mailing list