{extends "idf/wiki/base.html"} {block extraheader} {if !$rev.is_head}{/if} {/block} {block docclass}yui-t3{assign $inResourceView=true}{/block} {block body} {if !$rev.is_head} {ashowuser 'submitter', $rev.get_submitter(), $request}{aurl 'url', 'IDF_Views_Wiki::viewResource', array($project.shortname, $resource.title)}

{blocktrans}You are looking at an old revision of the resource {$resource.title}. This revision was created by {$submitter}.{/blocktrans}

{/if}

{$resource.summary}

{assign $preview = $rev.renderRaw()} {if $preview == ''} {assign $preview = __('Unable to render preview for this MIME type.')} {/if}

{$preview|unsafe}

{if !$rev.is_head and ($isOwner or $isAdmin)} {aurl 'url', 'IDF_Views_Wiki::deleteResourceRev', array($project.shortname, $rev.id)}

{trans 'Trash'} {trans 'Delete this revision'}

{/if}

{trans 'Page Usage'}

{if $pagerevs.count() == 0}

{trans 'This resource is not used on any pages yet.'}

{else} {/if}
{/block} {block context} {ashowuser 'submitter', $resource.get_submitter(), $request}

{trans 'Created:'} {$resource.creation_dtime|dateago}
{blocktrans}by {$submitter}{/blocktrans}

{if $rev.creation_dtime != $resource.creation_dtime}

{ashowuser 'submitter', $rev.get_submitter(), $request} {trans 'Updated:'} {$rev.creation_dtime|dateago}
{blocktrans}by {$submitter}{/blocktrans}

{/if} {if $revs.count() > 0}

{trans 'Old Revisions'}

{/if} {/block}