{* * filediffsidebyside * * File diff with side-by-side changes template * * @author Christopher Han * @author Mattias Ulbrich * @copyright Copyright (c) 2010 Christopher Han * @package GitPHP * @subpackage Template *} {if $filediff->GetStatus() == 'D'} {assign var=delblob value=$filediff->GetFromBlob()} {foreach from=$delblob->GetData(true) item=blobline} {/foreach} {elseif $filediff->GetStatus() == 'A'} {assign var=newblob value=$filediff->GetToBlob()} {foreach from=$newblob->GetData(true) item=blobline} {/foreach} {else} {foreach from=$diffsplit item=lineinfo} {if $lineinfo[0]=='added'} {elseif $lineinfo[0]=='deleted'} {elseif $lineinfo[0]=='modified'} {else} {/if} {/foreach} {/if}
{$blobline|escape}  
  {$blobline|escape}
{if $lineinfo[1]}{$lineinfo[1]|escape}{else} {/if} {if $lineinfo[2]}{$lineinfo[2]|escape}{else} {/if}