<div xmlns="http://www.w3.org/1999/xhtml"
    xmlns:py="http://genshi.edgewall.org/" py:strip="True">
    
    <!--! Add the tabbed pane above content -->
    <div py:match="div//div[@id='content'][@class='ticket']" py:attrs="select('@*')">
        <!--! BEGIN: ticket pane -->
        <ul id="tabbed_pane">
          <li id="view" class="${tab['view']}"><a href="${href.ticket(ticket.id)}">View</a></li>
          <li id="edit" class="${tab['edit']}">
            <py:choose>
              <a py:when="can_access_ticket_edit_page" href="${href.ticket(ticket.id)}?pane=edit">${_('Edit')}</a>
              <a href="#" rel="nofollow" py:otherwise="">${_('Edit')}</a>
            </py:choose>
          </li>
        </ul>
        <!--! END: ticket pane -->
        
        <!--! Replace Ticket with the type, and remove type from the status  -->
        <py:match path="//h1" once="True">
            <h1 py:attrs="select('@*')">${ticket.get_alias()} #${ticket.id} <span class="status">(${ticket['status']})</span></h1>
        </py:match>
        <!--! End Ticket type replacement  -->
        
        ${select('*')}
    </div>    
</div>

