{extends "idf/source/base.html"} {block extraheader}{/block} {block docclass}yui-t1{assign $inCommit=true}{/block} {block body} {if count($diff.files)} {/if}
{trans 'Date:'}{$cobject.date|date:"%Y-%m-%d %H:%M:%S"} ({$cobject.date|dateago})
{trans 'Author:'}{$cobject.author|strip_tags}
{trans 'Commit:'}{$cobject.commit}
{trans 'Message:'}{issuetext $cobject.title, $request}{if isset($cobject.full_message)}

{issuetext $cobject.full_message, $request}{/if}
{trans 'Files:'} {foreach $diff.files as $filename=>$diffdef} {assign $ndiff = count($diffdef['chunks'])} {$filename} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans})
{/foreach}
{if count($diff.files)}

{trans 'Change Details'}

{$diff.as_html()} {aurl 'url', 'IDF_Views_Source::downloadDiff', array($project.shortname, $commit)}

{trans 'Archive'} {trans 'Download the diff file'}

{/if} {/block} {block context} {if $scm == 'git'}

{trans 'Branches:'}
{foreach $branches as $branch} {aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $branch)} {$branch}
{/foreach}

{/if} {/block} {block javascript} {/block}