<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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="${g.pyforge_templates}/master.html"/>
<xi:include href="${c.app.templates}/lib.html" />
<?python from pyforge import model as M?>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>#$ticket.ticket_num $ticket.summary</title>
<link rel="stylesheet" type="text/css" href="${g.app_static('css/hilite.css')}"/>
<link rel="stylesheet" type="text/css" href="${g.app_static('css/tracker.css')}"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom"/>
</head>
<body>
<div class="span-14">
<div class="span-2">
${gravatar(ticket.reported_by.preferences.email_address, size=50)}<br/>
<py:if test="ticket.assigned_to">${gravatar(ticket.assigned_to.preferences.email_address, size=50)}</py:if>
</div>
<div class="span-12 last">
<h2 class="ticket_title">#$ticket.ticket_num $ticket.summary</h2>
Created by <a href="${ticket.reported_by.url()}">${ticket.reported_by.display_name}</a> ${h.ago(ticket.created_date, round=True)}<br/>
Currently assigned to
<py:if test="not ticket.assigned_to_id">${ticket.assigned_to_name()}</py:if>
<a py:if="ticket.assigned_to_id" href="${ticket.assigned_to.url()}">${ticket.assigned_to_name()}</a>
<p>
<a href="${ticket.email_link('#%s' % ticket.ticket_num)}">Email Ticket</a>
</p>
<div py:content="Markup(g.markdown.convert(ticket.description))"/>
${c.attachment_list.display(attachments=list(ticket.attachments), edit_mode=False)}
</div>
</div>
<div id="sidebar-right" class="span-5 last">
<a class="ticket_feed" href="${ticket.url()}feed.rss"><img src="/images/rss.png" alt="subscribe" title="subscribe" width="25" height="25"/></a>
Status: $ticket.status<br/>
<div class="tags" py:if="len(ticket.tags)">
Tags: <span py:for="tag in ticket.tags">
<a href="search?q=$tag.tag">$tag.tag (${ticket.artifacts_tagged_with(tag.tag).count()})</a>
</span>
</div>
Milestone: $ticket.milestone<br/>
<py:for each="field in globals.custom_fields or []">
${field.label}: ${ticket.custom_fields.get(field.name, '')}<br/>
</py:for>
<br/>
<a href="#comment">Leave a Comment</a><br/>
<a href="edit">Edit this Ticket</a>
</div>
<hr/>
<div py:with="thread=ticket.discussion_thread()" id="#comment">
<h2><a href="${thread.url()}">Discussion</a></h2>
${c.thread.display(value=thread)}
</div>
<script type="text/javascript" src="${g.app_static('js/comments.js')}"/>
</body>
</html>