Load project epoch using raw git objects
[gitphp.git] / templates / filediffsidebyside.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{*
 * filediffsidebyside
 *
 * File diff with side-by-side changes template
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @author Mattias Ulbrich
 * @copyright Copyright (c) 2010 Christopher Han
 * @package GitPHP
 * @subpackage Template
 *}
<table class="diffTable">
  {foreach from=$diffsplit item=lineinfo}
    {if $lineinfo[0]=='added'}
    <tr class="diff-added">
    {elseif $lineinfo[0]=='deleted'}
    <tr class="diff-deleted">
    {elseif $lineinfo[0]=='modified'}
    <tr class="diff-modified">
    {else}
    <tr>
    {/if}
      <td class="diff-left">{if $lineinfo[1]}{$lineinfo[1]|escape}{else}&nbsp;{/if}</td>
      <td>{if $lineinfo[2]}{$lineinfo[2]|escape}{else}&nbsp;{/if}</td>
    </tr>
  {/foreach}
</table>

comments