<?cs include "header.cs"?>
<div id="content">
<?cs if show_myticket == 1 ?>
<h1><a href="?myticket=false">All Project Tickets</a>&nbsp;&nbsp;&nbsp;&nbsp;(<a href="?myticket=true">Show My Tickets</a>)</h1>
<?cs else ?>
<h1>All Project Tickets</h1>
<?cs /if ?>
<?cs each:project = projects ?>
  <h2><a href="<?cs var:project.href ?>/query"><?cs var:project.name ?></a></h2>
  <table class="listing tickets">

    <thead><tr>
      <th class="id">Ticket</th>
      <th class="summary">Summary</th>
      <th class="owner">Owner</th>
      <th class="status">Status</th>
      <th class="type">Type</th>
      <th class="priority asc">Priority</th>
      <th class="milestone">Milestone</th>
    </tr></thead>
    <tbody>

<?cs each:ticket = project.tickets ?>
      <tr class="<?cs if ticket.id % 2 ?>odd<?cs else ?>even<?cs /if ?> prio<?cs var:ticket.priority_value ?>">
        <td class="summary"><a href="<?cs var:project.href ?>/ticket/<?cs var:ticket.id ?>"><?cs var:ticket.id ?></a></td>
        <td class="summary"><a href="<?cs var:project.href ?>/ticket/<?cs var:ticket.id ?>"><?cs var:ticket.summary ?></a></td>
        <td class="owner"><span><?cs var:ticket.owner ?></span></td>
        <td class="status"><span><?cs var:ticket.status ?></span></td>
        <td class="type"><span><?cs var:ticket.type ?></span></td>
        <td class="priority"><span><?cs var:ticket.priority ?></span></td>
        <td class="milestone"><span><?cs var:ticket.milestone ?></span></td>
      </td>
<?cs /each ?>
    </tbody>
  </table>
<?cs /each ?>
</div>
<?cs include "footer.cs"?>
