]> git.decadent.org.uk Git - dak.git/blobdiff - dak/queue_report.py
that should also shutup the html validation foo
[dak.git] / dak / queue_report.py
index cb2b93904a974d5800be5b2a0e6689cecd27b198..862a6d20ebb8a431ebc4bfc8288c721f852cde65 100755 (executable)
@@ -179,6 +179,7 @@ def header():
       Debian NEW and BYHAND Packages
     </title>
     <script type="text/javascript">
+    //<![CDATA[
     function togglePkg() {
         var children = document.getElementsByTagName("*");
         for (var i = 0; i < children.length; i++) {
@@ -194,6 +195,7 @@ def header():
             }
         }
     }
+    //]]>
     </script>
   </head>
   <body id="NEW">
@@ -246,8 +248,8 @@ def table_header(type, source_count, total_count):
     print "<h1 class='binNEW'>Summary for: %s</h1>" % (type)
     print "<h1 class='binNEW' style='display: none'>Summary for: binary-%s only</h1>" % (type)
     print """
+    <p class="togglepkg" onclick="togglePkg()">Click to toggle all/binary-NEW packages</p>
     <table class="NEW">
-      <p class="togglepkg" onclick="togglePkg()">Click to toggle all/binary-NEW packages</p>
       <caption class="binNEW">
     """
     print "Package count in <strong>%s</strong>: <em>%s</em>&nbsp;|&nbsp; Total Package count: <em>%s</em>" % (type, source_count, total_count)
@@ -314,7 +316,7 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing
     if sponsor:
         try:
             (login, domain) = sponsor.split("@", 1)
-            print "<span class=\"sponsor\">Sponsor: <a href=\"http://qa.debian.org/developer.php?login=%s\">%s</a></span>@debian.org<br/>" % (utils.html_escape(login), utils.html_escape(login))
+            print "<span class=\"sponsor\">Sponsor: <a href=\"http://qa.debian.org/developer.php?login=%s\">%s</a>@debian.org</span><br/>" % (utils.html_escape(login), utils.html_escape(login))
         except Exception as e:
             pass