Bump version
[gitphp.git] / templates / filediff.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{*
 *  filediff.tpl
 *  gitphp: A PHP git repository browser
 *  Component: Single file diff template
 *
 *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
 *}
<div class="pre">
{foreach from=$diff item=diffline}
  {if substr($diffline,0,1)=="+"}
    <span class="diffplus">{$diffline|escape:'html'}</span>
  {elseif substr($diffline,0,1)=="-"}
    <span class="diffminus">{$diffline|escape:'html'}</span>
  {elseif substr($diffline,0,1)=="@"}
    <span class="diffat">{$diffline|escape:'html'}</span>
  {else}
    <span>{$diffline|escape:'html'}</span>
  {/if}
{/foreach}
</div>

comments