<!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="wiki_master.html"/>
<?python from pyforge.lib import helpers as h?>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>$page.title</title>
<link rel="stylesheet" type="text/css"
href="${g.app_static('css/hilite.css')}"/>
<link rel="alternate" type="application/rss+xml" title="Page RSS" href="feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Page Atom" href="feed.atom"/>
<link rel="alternate" type="application/rss+xml" title="Wiki RSS" href="../feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Wiki Atom" href="../feed.atom"/>
<style>
.hidden { display: None }
</style>
</head>
<body>
<div class="span-11 append-1">
<h1 class="title">$page.title</h1>
${Markup(page.html_text)}
</div>
<div id="sidebar-right" class="span-7 last">
<div py:if="len(page.labels)">
Tags: <span py:for="label in page.labels"><a href="../browse_tags">$label (${page.artifacts_labeled_with(label).count()})</a></span>
<hr/>
</div>
<div class="gravatar sm">
Authors:
<a href="${author.url()}" py:for="author in page.authors()">
${gravatar(author.preferences.email_address, size=16, title=author.display_name)}
</a>
</div>
${}
<div py:if="page.attachments">
<hr/>
<strong>Attachments</strong>
</div>
<py:for each="att in page.attachments">
<hr/>
<div py:if="h.supported_by_PIL(att.contentType)" class="attachment_thumb">
<a href="${att.url()}">
<img src="${att.url()}/thumb"/>
</a><br/>
<a href="${att.url()}">${att.metadata.filename}</a>
($att.length bytes)
</div>
<div py:if="not h.supported_by_PIL(att.contentType)">
<a href="${att.url()}">${att.metadata.filename}</a>
($att.length bytes)
</div>
</py:for>
</div>
<hr/>
<div py:if="page.discussion_thread()" py:with="thread=page.discussion_thread()" id="#comment">
<h2><a href="${thread.url()}">Discussion</a></h2>
${c.thread.display(value=thread)}
</div>
<a title="Email Page" href="${page.email_link(page.title)}"
class="artifact_email ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only">
<span class="ui-button-icon-primary ui-icon ui-icon-mail-closed"></span>
<span class="ui-button-text">Email Page</span>
</a>
${c.subscribe_form.display(value=subscribed, action='subscribe', style='icon')}
</body>
</html>