2008-11-22 22:51:23 +00:00
|
|
|
{extends "idf/wiki/base.html"}
|
2008-11-23 10:12:16 +00:00
|
|
|
{block extraheader}{if $oldrev}<meta name="ROBOTS" content="NOINDEX" />{/if}{/block}
|
2008-11-22 22:51:23 +00:00
|
|
|
{block docclass}yui-t3{assign $inView=true}{/block}
|
|
|
|
{block body}
|
|
|
|
|
2008-11-23 10:12:16 +00:00
|
|
|
{if $oldrev}
|
|
|
|
{assign $submitter = $oldrev.get_submitter()}{aurl 'url', 'IDF_Views_Wiki::view', array($project.shortname, $page.title)}
|
|
|
|
<div class="old-rev">
|
|
|
|
<p>{blocktrans}You are looking at an old revision of the page
|
|
|
|
<a href="{$url}">{$page.title}</a>. This revision was created
|
|
|
|
by {$submitter}.{/blocktrans}</p>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
2008-11-22 22:51:23 +00:00
|
|
|
<p class="desc">{$page.summary}</p>
|
|
|
|
|
2008-11-23 10:12:16 +00:00
|
|
|
{if !$oldrev}
|
2008-11-22 22:51:23 +00:00
|
|
|
{markdown $rev.content, $request}
|
2008-11-23 10:12:16 +00:00
|
|
|
{else}
|
|
|
|
{markdown $oldrev.content, $request}
|
|
|
|
{/if}
|
2008-11-22 22:51:23 +00:00
|
|
|
|
|
|
|
{/block}
|
|
|
|
{block context}
|
|
|
|
{assign $submitter = $page.get_submitter()}
|
|
|
|
<p><strong>{trans 'Created:'}</strong> <span class="nobrk">{$page.creation_dtime|dateago}</span><br /><span class="nobrk">{blocktrans}by {$submitter}{/blocktrans}</span></p>
|
|
|
|
{if $rev.creation_dtime != $page.creation_dtime}<p>{assign $submitter = $rev.get_submitter()}
|
|
|
|
<strong>{trans 'Updated:'}</strong> <span class="nobrk">{$rev.creation_dtime|dateago}</span><br /><span class="nobrk">{blocktrans}by {$submitter}{/blocktrans}</span></p>{/if}
|
|
|
|
{if $tags.count()}
|
|
|
|
<p>
|
|
|
|
<strong>{trans 'Labels:'}</strong><br />
|
|
|
|
{foreach $tags as $tag}
|
|
|
|
<span class="label"><strong>{$tag.class}:</strong>{$tag.name}</span><br />
|
|
|
|
{/foreach}
|
|
|
|
</p>{/if}
|
2008-11-23 10:12:16 +00:00
|
|
|
{if $revs.count() > 0}
|
|
|
|
<p><strong>{trans 'Old Revisions'}</strong></p>
|
|
|
|
<ul>{foreach $revs as $old}
|
|
|
|
<li><a href="{url 'IDF_Views_Wiki::view', array($project.shortname, $page.title), array('rev'=>$old.id)}">{$old.summary}</a></li>
|
|
|
|
{/foreach}</ul>
|
|
|
|
{/if}
|
2008-11-22 22:51:23 +00:00
|
|
|
{/block}
|