<!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/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="macros.html" />
<xi:include href="layout.html" />
<head>
<title>Project List</title>
</head>
<body>
<div id="content">

<h1>Project List</h1><p>This is a summary of the projects running in this Trac instance.</p>

<div class="tram-project-list">
<py:for each="project in projects">

<div class="tram-project" style="width:280px;height: 120px;">
 <py:if test="project.href">

<div style="width:278px;">
   <a class="tram-title" href="$project.href" title="$project.description">
    $project.name</a>
    <span class="tram-description">$project.description</span>
</div>
    <div class="tram-data" style="width:220px;">
      <table style="text-align:left; width:210px; border-collapse:collapse">
        <tr><th></th><th>month</th><th>total</th></tr>
        <tr><td>commits</td><td>${project['stats.changes_month']}</td><td>${project['stats.changes']}</td></tr>
        <tr><td>tickets</td><td>${project['stats.tickets_month']} (${project['stats.tickets_closed_month']})</td>
        <td>${project['stats.tickets']} (${project['stats.tickets_closed']})</td></tr>
      </table>
    </div> 

   <div class="tram-chart">
      <div class="tram-chart-month" style="width:${project['stats.score_month'] * 2 }px"><!-- dummy for IE --></div>
     <div class="tram-chart-total" style="width:${project['stats.score'] * 2 }px"><!-- dummy for IE --></div>
    </div>
     </py:if><py:if test="not project.href">

   <a name="dummy" class="tram-title">$project.name : <em>Error</em></a>
    <span class="tram-error">$project.description</span></py:if>

</div>

</py:for>
</div>

<div class="tram-beneath">
<p>The charts underneath each project represent relative activity levels.<br />
The top half represents monthly activity and the bottom half is total activity</p></div>
</div>
</body>
</html>
