warning-ui/search.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>
    <h1>Warnings in <a href="/build?id=${id}">build ${id}</a></h1>

    <ul>
      <li py:if="user != ''">User LIKE '${user}'</li>
      <li py:if="path != ''">Path LIKE '${path}'</li>
    </ul>

    <h2>Results</h2>

    <p py:if="len(results) == 0">No warnings found!</p>

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

    <h2>Search again:</h2>
    ${searchform(user, path, msg)}

  </body>
</html>