<?cs include "header.cs"?>
<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">
<?cs each:project = projects ?>

<div class="tram-project" style="width:280px;height: 120px;"><?cs
  if:project.href ?>
<div style="width:278px;">
   <a class="tram-title" href="<?cs var:project.href ?>/login" title="<?cs var:project.description ?>">
    <?cs var:project.name ?></a>
    <!-- 
    	<span class="tram-description"><?cs var:project.description ?></span>
     //-->
</div>
    <div class="tram-data" style="width:220px;">
      <table style="text-align:left; width:210px; border-collapse:collapse">
        <tr><th>&nbsp</th><th>month</th><th>total</th></tr>
        <tr><td>commits</td><td><?cs var:project.stats.changes_month ?></td><td><?cs var:project.stats.changes ?></td></tr>
        <tr><td>tickets</td><td><?cs var:project.stats.tickets_month ?> (<?cs var:project.stats.tickets_closed_month ?>)</td>
          <td><?cs var:project.stats.tickets ?> (<?cs var:project.stats.tickets_closed ?>)</td></tr>
      </table>
    </div> 

   <div class="tram-chart">
      <div class="tram-chart-month" style="width:<?cs var:project.stats.score_month * 2 ?>px"><!-- dummy for IE --></div>
     <div class="tram-chart-total" style="width:<?cs var:project.stats.score * 2 ?>px"><!-- dummy for IE --></div>
    </div>
    <?cs
  else ?>
   <a name="dummy" class="tram-title"><?cs var:project.name ?>: <em>Error</em></a>
    <span class="tram-error"><?cs var:project.description ?></span><?cs
  /if ?>

</div>

<?cs /each ?>
</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>
<?cs include "footer.cs"?>

