- print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">"""
- print "<title>%s - Debian NEW package overview</title>" % (name)
- print """<link type="text/css" rel="stylesheet" href="/style.css">
- <link rel="shortcut icon" href="http://www.debian.org/favicon.ico">
- </head>
- <body>
- <div align="center">
- <a href="http://www.debian.org/">
- <img src="http://www.debian.org/logos/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt=""></a>
- <a href="http://www.debian.org/">
- <img src="http://www.debian.org/Pics/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
- </div>
- <br />
- <table class="reddy" width="100%">
- <tr>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-upperleft.png" align="left" border="0" hspace="0" vspace="0"
- alt="" width="15" height="16"></td>"""
- print """<td rowspan="2" class="reddy">Debian NEW package overview for %s</td>""" % (name)
- print """<td class="reddy">
- <img src="http://www.debian.org/Pics/red-upperright.png" align="right" border="0" hspace="0" vspace="0"
- alt="" width="16" height="16"></td>
- </tr>
- <tr>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0"
- alt="" width="16" height="16"></td>
- <td class="reddy">
- <img src="http://www.debian.org/Pics/red-lowerright.png" align="right" border="0" hspace="0" vspace="0"
- alt="" width="15" height="16"></td>
- </tr>
- </table>
- """
+ result = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+ <head>
+ <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8"
+ />
+ <title>%(name)s - Debian NEW package overview</title>
+ <link type="text/css" rel="stylesheet" href="/style.css" />
+ <link rel="shortcut icon" href="https://www.debian.org/favicon.ico" />
+ <script type="text/javascript">
+ //<![CDATA[
+ <!--
+ function toggle(id, initial, display) {
+ var o = document.getElementById(id);
+ toggleObj(o, initial, display);
+ }
+ function show(id, display) {
+ var o = document.getElementById(id);
+ o.style.display = 'table-row-group';
+ }
+ function toggleObj(o, initial, display) {
+ if(! o.style.display)
+ o.style.display = initial;
+ if(o.style.display == display) {
+ o.style.display = "none";
+ } else {
+ o.style.display = display;
+ }
+ }
+ //-->
+ //]]>
+ </script>
+ </head>
+ <body id="NEW-details-page">
+ <div id="logo">
+ <a href="https://www.debian.org/">
+ <img src="https://www.debian.org/logos/openlogo-nd-50.png"
+ alt="debian logo" /></a>
+ <a href="https://www.debian.org/">
+ <img src="https://www.debian.org/Pics/debian.png"
+ alt="Debian Project" /></a>
+ </div>
+ <div id="titleblock">
+ <img src="https://www.debian.org/Pics/red-upperleft.png"
+ id="red-upperleft" alt="corner image"/>
+ <img src="https://www.debian.org/Pics/red-lowerleft.png"
+ id="red-lowerleft" alt="corner image"/>
+ <img src="https://www.debian.org/Pics/red-upperright.png"
+ id="red-upperright" alt="corner image"/>
+ <img src="https://www.debian.org/Pics/red-lowerright.png"
+ id="red-lowerright" alt="corner image"/>
+ <span class="title">
+ Debian NEW package overview for %(name)s
+ </span>
+ </div>
+
+ """%{"name":name}
+
+ # we assume only one source (.dsc) per changes here
+ result += """
+ <div id="menu">
+ <p class="title">Navigation</p>
+ <p><a href="#changes" onclick="show('changes-body')">.changes</a></p>
+ <p><a href="#dsc" onclick="show('dsc-body')">.dsc</a></p>
+ <p><a href="#source-lintian" onclick="show('source-lintian-body')">source lintian</a></p>
+
+"""
+ for binarytype, packagename in filter(lambda m: m[0] in ('deb', 'udeb'), missing):
+ result += """
+ <p class="subtitle">%(pkg)s</p>
+ <p><a href="#binary-%(pkg)s-control" onclick="show('binary-%(pkg)s-control-body')">control file</a></p>
+ <p><a href="#binary-%(pkg)s-lintian" onclick="show('binary-%(pkg)s-lintian-body')">binary lintian</a></p>
+ <p><a href="#binary-%(pkg)s-contents" onclick="show('binary-%(pkg)s-contents-body')">.deb contents</a></p>
+ <p><a href="#binary-%(pkg)s-copyright" onclick="show('binary-%(pkg)s-copyright-body')">copyright</a></p>
+ <p><a href="#binary-%(pkg)s-file-listing" onclick="show('binary-%(pkg)s-file-listing-body')">file listing</a></p>
+
+"""%{"pkg":packagename}
+ result += " </div>"
+ return result