{* * blobdiff.tpl * gitphp: A PHP git repository browser * Component: Blobdiff view template * * Copyright (C) 2009 Christopher Han *} {extends file='projectbase.tpl'} {block name=main} {include file='title.tpl' titlecommit=$commit} {include file='path.tpl' pathobject=$blobparent target='blob'}
{* Display the from -> to diff header *} {t}blob{/t}:{if $file}a/{$file}{else}{$blobparent->GetHash()}{/if} -> {t}blob{/t}:{if $file}b/{$file}{else}{$blob->GetHash()}{/if}
{if $filediff->IsBinary()}
 {t 1=$filediff->GetFromLabel($file) 2=$filediff->GetToLabel($file)}Binary files %1 and %2 differ{/t}
{else} {if $sidebyside} {* Display the sidebysidediff *} {include file='filediffsidebyside.tpl' diffsplit=$filediff->GetDiffSplit()} {else} {* Display the diff *} {include file='filediff.tpl' diff=$filediff->GetDiff($file, false, true)} {/if} {/if}
{/block}