view bitten/templates/bitten_summary_lint.html @ 645:8c824b14e1c5

0.6dev: Switching `master.py` to use new `self._send_response()` and `self._send_error() methods. Simplifies code, but most importantly for errors it allows a consistent method for transmitting plain-text error messages to the slave (that the slave will now output as part of debug logging). Raising Trac HTTP* errors actually causes full rendering of an HTML error page as response, which is both inefficient as well as making it near-impossible to extract the 'hidden' message from the master.
author osimons
date Mon, 24 Aug 2009 12:00:43 +0000
parents 01c9848950d5
children 66894b0647f1
line wrap: on
line source
<!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"
      xmlns:py="http://genshi.edgewall.org/">

<h3>Code Lint</h3>
<table class="listing lint">
 <thead>
    <tr><th rowspan="2" class="file">File</th><th colspan="4" class="category">Problem Category Totals</th><th rowspan="2" class="total">Total</th></tr>
    <tr>
      <th class="category">Convention</th>
      <th class="category">Refactor</th>
      <th class="category">Warning</th>
      <th class="category">Error</th>
    </tr>
 </thead>

 <tbody><py:for each="item in data.data">
 <tr>
    <td class="file">
    <a py:if="item.href" href="${item.href}">$item.file</a>
    <span py:if="not item.href">$item.file</span>
    </td>

    <td class="category">$item.category.convention</td>
    <td class="category">$item.category.refactor</td>
    <td class="category">$item.category.warning</td>
    <td class="category">$item.category.error</td>
    <td class="category">$item.lines</td>

  </tr>
 </py:for>
 </tbody>
 <tbody class="totals" py:with="totals = data.totals"><tr>
    <th>Total (in $totals.files files)</th>

    <td class="category total">$totals.category.convention</td>
    <td class="category total">$totals.category.refactor</td>
    <td class="category total">$totals.category.warning</td>
    <td class="category total">$totals.category.error</td>
    <td class="total">$totals.lines</td>
 </tr></tbody>
</table>

</html>
Copyright (C) 2012-2017 Edgewall Software