<!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>All Project Tickets</title></head>
<body>
<div id="content">
<div py: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>
</div><div py:if="show_myticket!=1">
<h1>All Project Tickets</h1>
</div>
<py:for each="project in projects">
  <h2><a href="${project.href}/query">${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>
<py:for each="idx, ticket in enumerate(project.tickets)">
      <tr class="${idx % 2 and 'odd' or 'even'} prio${ticket.priority_value}">
        <td class="summary"><a href="${project.href}/ticket/${ticket.id}">${ticket.id}</a></td>
        <td class="summary"><a href="${project.href}/ticket/${ticket.id}">${ticket.summary}</a></td>
        <td class="owner"><span>${ticket.owner}</span></td>
        <td class="status"><span>${ticket.status}</span></td>
        <td class="type"><span>${ticket.type}</span></td>
        <td class="priority"><span>${ticket.priority}</span></td>
        <td class="milestone"><span>${ticket.milestone}</span></td>
      </tr>
</py:for>
    </tbody>
  </table>
</py:for>
</div>
</body>
</html>
