{% extends "layout.html" %}
{% block search %}
<div id="search">
  <form action="/ts/search/" method="post">
    <input type="text" name="search_term" />
    <input type="submit" value="Search" />
  </form>
</div>
{% endblock %}
{% block info %}
<div id="info">
  <div id="tickets">tickets</div>
  <ul>
    <li><a href="/ts/filter?status=new">new: {{new}}</a></li>
    <li><a href="/ts/filter?status=!new&status=!resolved">open: {{open}}</a></li>
    <li><a href="/ts/filter?resp={{user}}&status=!resolved">own: {{my}}</a></li>
  </ul>
</div>
{% endblock %}
{% block menu %}
    <div id="menu">
      <ul>
        <li><a href="/ts/new">New ticket</a></li>
        <li><a href="/ts/index">Ticket index</a></li>
        <li>&nbsp;&nbsp;Filter tickets
          <ul>
            <li><a href="/ts/filter?status=new" class="first" title="unassigned tickets">New</a></li>
            <li><a href="/ts/filter?status=!new&status=!resolved" title="tickets that are not new and not resolved">Open</a></li>
            <li><a href="/ts/filter?resp={{user}}&status=!resolved" title="tickets assigned to you">Owned</a></li>
            <li><a href="/ts/filter" class="last">Custom filter</a></li>
          </ul>
{% if queues %}
          &nbsp;&nbsp;Queues
          <ul>
            {% for queue in queues %}
            <li><a href="/ts/filter?queue={{queue}}">{{queue}}</a></li>
            {% endfor %}
          </ul>
{% endif %}
        </li>
      </ul>
    </div>
{% endblock %}
