warning-ui/build.html
author Benjamin Smedberg <benjamin@smedbergs.us>
Fri, 19 Dec 2008 16:50:47 -0500
changeset 8 c33d0e330649
child 12 0b5a89ccda6a
permissions -rw-r--r--
Add a web frontend to the warning database: cherrypy+genshi FTW!

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
  <xi:include href="common.inc" />

  <head>
    <title>Warning for build ${id}</title>
  </head>
  <body class="build">
    <h1>Build ${id}</h1>

    <div class="h2block">
      <h2>Revision:</h2>
      <a href="http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=${rev}">${rev}</a>
    </div>
    <div class="h2block" py:if="previd is not None and prevrev != rev">
      <h2>Changes since <a href="/build?id=${previd}">last build</a>:</h2>
      <a href="http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=${prevrev}&amp;tochange=${rev}">Log</a>
    </div>
    <div class="h2block">
      <h2>Unique warnings:</h2> ${unique}
    </div>
    <div class="h2block">
      <h2>Total warnings:</h2> ${total}
    </div>

    <py:if test="previd is not None">
      <div py:if="len(newwarnings)">
        <h3>New:</h3>

        <ul>
          <li py:for="signature, file, lineno, msg in newwarnings">
            <a href="${genlink('warning', signature=signature)}">${file}:${lineno} - ${msg}</a>
          </li>
        </ul>
      </div>

      <div py:if="len(fixedwarnings)">
        <h3>Fixed:</h3>

        <ul>
          <li py:for="signature, file, lineno, msg in fixedwarnings">
            <a href="${genlink('warning', signature=signature)}">${file}:${lineno} - ${msg}</a>
          </li>
        </ul>
      </div>
    </py:if>

    <h2>Search warnings:</h2>

    ${searchform('', '', 'unused variable%')}

  </body>
</html>