trac-ticketlinks / trac / ticket / templates / report_list.html

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns=""
  <xi:include href="layout.html" />
    <title>Available Reports</title>

    <div id="content" class="report">
      <h1>Available Reports</h1>

      <div id="description" xml:space="preserve" />

      <table class="listing reports"
             py:with="any_edit = any(can_edit for id, title, can_edit, can_delete in reports);
                      any_delete = any(can_delete for id, title, can_edit, can_delete in reports)">
          <th><a href="${'report', asc=(sort == 'report' and asc) and '0' or '1')}">Report</a></th>
          <th><a href="${'title', asc=(sort == 'title' and asc) and '0' or '1')}">Title</a></th>
          <th py:if="any_edit or any_delete" colspan="${any_edit and any_delete and '2' or None}">Actions</th>

        <tbody py:choose="">
          <tr py:when="reports" py:for="id, title, can_edit, can_delete in reports">
            <td class="report"><a title="View report" href="${}">{$id}</a></td>
            <td class="title"><a title="View report" href="${}">$title</a></td>
            <td class="action" py:if="any_edit"><a py:if="can_edit" href="${, action='edit')}"
                                    title="Edit report">Edit</a></td>
            <td class="action" py:if="any_delete"><a py:if="can_delete" href="${, action='delete')}"
                                      title="Delete report">Delete</a></td>
          <tr py:otherwise="">
            <td colspan="${2 + any_edit + any_delete}">No reports available.</td>
      <div py:if="'REPORT_CREATE' in perm" class="buttons">
        <form action="" method="get" id="create_report">
            <input type="hidden" name="action" value="new" />
            <input type="submit" value="${_('Create new report')}" />

      <div id="help" i18n:msg="">
        See <a href="${'TracReports')}">TracReports</a> for help on using and creating reports.