diff options
-rw-r--r-- | TODO | 2 | ||||
-rwxr-xr-x | bin/reproducible_stats.sh | 36 | ||||
-rw-r--r-- | userContent/static/style.css | 21 |
3 files changed, 37 insertions, 22 deletions
@@ -113,11 +113,11 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian * bugs ** when notes are removed the navigation pages are not updated... (touch note_new on create, then on next run delete on all navi pages for which note_new exists) *** modify packages.yml locally to test... +** add note about notes on every page which has them... * CSS/HTML ** use iframes ** use icons within index pages (refactor to get rid of that case statement, use array instead) -** use css class to mark packages with notes, underline them. explain HAS_NOTE on every page which has them... * watch: zephyr (debbindiff timeout?) * watch: haskell-hsql-odbc (debbindiff error only in jenkins log, not in rbuild log diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index d0829ecc..8c448cb3 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -310,7 +310,7 @@ init_navi_frame() { echo "<body><table><tr><td><span style=\"font-size:1.2em;\">$1</span> $2" >> $NAVI set_icon "$3" $5 echo "<a href=\"$JENKINS_URL/userContent/index_${STATE_TARGET_NAME}.html\" target=\"_parent\"><img src=\"../static/$ICON\" alt=\"${STATE_TARGET_NAME} icon\" /></a>" >> $NAVI - echo "<span style=\"text-align:right; font-size:0.9em;\">at $4:</span> " >> $NAVI + echo "<span style=\"font-size:0.9em;\">at $4:</span> " >> $NAVI } append2navi_frame() { @@ -321,6 +321,14 @@ finish_navi_frame() { echo "</td><td style=\"text-align:right; font-size:0.9em;\"><a href=\"$JENKINS_URL/userContent/reproducible.html\" target=\"_parent\">reproducible builds</a></td></tr></table></body></html>" >> $NAVI } +set_package_class() { + if [ "${NOTES_PACKAGE[${PKG}]}" != "" ] ; then + CLASS="class=\"noted\"" + else + CLASS="class=\"package\"" + fi +} + process_packages() { for PKG in $@ ; do RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version,status FROM source_packages WHERE name = \"$PKG\"") @@ -328,7 +336,7 @@ process_packages() { # version with epoch removed EVERSION=$(echo $RESULT | cut -d "|" -f2 | cut -d ":" -f2) if $BUILDINFO_SIGNS && [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then - STAR[$PKG]="<span style=\"color:#555555; font-size:0.8em;\">β</span>" # used to be a star... + STAR[$PKG]="<span class=\"beta\">β</span>" # used to be a star... fi # only build $PKG pages if they don't exist or are older than $BUILD_DATE NAVI="/var/lib/jenkins/userContent/rb-pkg/${PKG}_navigation.html" @@ -368,12 +376,8 @@ process_packages() { write_pkg_frameset "$PKG" "$MAINLINK" fi if [ -f "/var/lib/jenkins/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" ] ; then - if [ "${NOTES_PACKAGE[${PKG}]}" != "" ] ; then - NOTED="N" - else - NOTED="" - fi - LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a>${STAR[$PKG]}$NOTED" + set_package_class + LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\" $CLASS>$PKG</a>${STAR[$PKG]}" else LINKTARGET[$PKG]="$PKG" fi @@ -382,7 +386,8 @@ process_packages() { force_package_targets() { for PKG in $@ ; do - LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a>${STAR[$PKG]}" + set_package_class + LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\" $CLASS>$PKG</a>${STAR[$PKG]}" done } @@ -407,24 +412,22 @@ write_summary_header() { write_summary " Join <code>#debian-reproducible</code> on OFTC to get support for making sure your packages build reproducibly too!" fi write_summary "</p>" - write_summary "<p><ul>Other views for these build results:" - write_summary "<li>" + write_summary "<ul><li>Other views for these build results:</li>" for MY_STATE in $ALLSTATES ; do WITH="" if [ "$MY_STATE" = "FTBR_with_buildinfo" ] ; then WITH="YES" fi set_icon $MY_STATE $WITH # sets ICON and STATE_TARGET_NAME - write_summary "<a href=\"$JENKINS_URL/userContent/index_${STATE_TARGET_NAME}.html\" target=\"_parent\"><img src=\"static/$ICON\" alt=\"${STATE_TARGET_NAME} icon\" /></a> " + write_summary "<li><a href=\"$JENKINS_URL/userContent/index_${STATE_TARGET_NAME}.html\" target=\"_parent\"><img src=\"static/$ICON\" alt=\"${STATE_TARGET_NAME} icon\" /></a></li>" done - write_summary "</li>" for TARGET in notes $ALLVIEWS dd-list ; do if [ "$TARGET" = "$1" ] ; then continue fi write_summary "<li><a href=\"index_${TARGET}.html\">${SPOKENTARGET[$TARGET]}</a></li>" done - write_summary "</ul></p>" + write_summary "</ul>" write_summary "</header>" } @@ -517,14 +520,11 @@ SUMMARY=index_${VIEW}.html echo "Starting to write $SUMMARY page." write_summary_header $VIEW "Overview of ${SPOKENTARGET[$VIEW]}" write_summary "<p>Packages which have notes: <code>" -for PKG in $PACKAGES_WITH_NOTES ; do - NOTES_PACKAGE[${PKG}]="" -done force_package_targets $PACKAGES_WITH_NOTES PACKAGES_WITH_NOTES=$(echo $PACKAGES_WITH_NOTES | sed -s "s# #\n#g" | sort | xargs echo) link_packages $PACKAGES_WITH_NOTES write_summary "</code></p>" -write_summary "<p style=\"font-size:0.9em\">Notes are stored in <a href=\"https://anonscm.debian.org/cgit/reproducible/notes.git\">notes.git</a>.</p>" +write_summary "<p style=\"font-size:0.9em;\">Notes are stored in <a href=\"https://anonscm.debian.org/cgit/reproducible/notes.git\">notes.git</a>.</p>" write_summary_footer publish_summary diff --git a/userContent/static/style.css b/userContent/static/style.css index 95f546bc..e493f55c 100644 --- a/userContent/static/style.css +++ b/userContent/static/style.css @@ -22,17 +22,32 @@ img { vertical-align: middle; } -a { +.beta { + color:#555555; + font-size:0.8em; +} + +a, a.package { color:#0088cc; text-decoration:none; } -a:hover, a:focus { +a.noted { + color:#0088cc; + text-decoration:underline; +} + +a:hover, a:focus, a.package:hover, a.package:focus { color:#005580; text-decoration:underline; } -a:visited { +a.noted:hover, a.noted:focus { + color:#005580; + text-decoration:none; +} + +a.package:visited, a.noted:visited { color:green; } |