{extends "idf/source/base.html"} {block extraheader}{/block} {block docclass}yui-t1{assign $inCommit=true}{/block} {block body} {if $cobject.parents}{/if} {if count($changes)} {/if} {* End of the if count($changes) *}
{trans 'Date:'}{$cobject.date|date:"%Y-%m-%d %H:%M:%S"} ({$cobject.date|dateago})
{trans 'Author:'}{showuser $rcommit.get_author(), $request, $cobject.author}
{trans 'Branch:'}{$cobject.branch}
{trans 'Commit:'}{$cobject.commit}
{trans 'Parents:'}{foreach $cobject.parents as $parent} {$parent}
{/foreach}
{trans 'Message:'}{issuetext $cobject.title, $request}{if isset($cobject.full_message)}

{issuetext $cobject.full_message, $request, true, false, true, true, true}{/if}
{trans 'Changes:'} {foreach $changes.deletions as $filename} {/foreach} {foreach $changes.renames as $oldname => $newname} {/foreach} {foreach $changes.additions as $filename} {/foreach} {foreach $changes.patches as $filename} {assign $ndiff = count($diff.files[$filename]['chunks'])} {/foreach} {foreach $changes.properties as $filename => $properties} {/foreach}
D{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
R{$oldname} → {$newname}
A{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if}
M{$filename}{if !empty($diff.files[$filename])} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}){/if}
P{$filename} {foreach $properties as $key => $value} {if $value == null} {else} {/if} {/foreach}
{$key}{trans 'removed'}{$value}
{if count($diff.files)}

{trans 'File differences'}

{$diff.as_html()} {/if}{if count($diff.files) or $large_commit} {aurl 'url', 'IDF_Views_Source::downloadDiff', array($project.shortname, $commit)}

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

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