Show filenames in diff
Show filenames in diff

{* {*
* commitdiff_item.tpl * commitdiff_item.tpl
* gitphp: A PHP git repository browser * gitphp: A PHP git repository browser
* Component: Commitdiff view item template * Component: Commitdiff view item template
* *
* Copyright (C) 2006 Christopher Han <xiphux@gmail.com> * Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
*} *}
{if $status == "A"} {if $status == "A"}
<div class="diff_info"> <div class="diff_info">
{$to_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$to_id}&hb={$hash}&f={$file}">{$to_id}</a>(new) {$to_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$to_id}&hb={$hash}&f={$file}">{if $file}{$file}{else}{$to_id}{/if}</a>(new)
</div> </div>
{elseif $status == "D"} {elseif $status == "D"}
<div class="diff_info"> <div class="diff_info">
{$from_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$from_id}&hb={$hash}&f={$file}">{$from_id}</a>(deleted) {$from_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$from_id}&hb={$hash}&f={$file}">{if $file}{$file}{else}{$from_id}{/if}</a>(deleted)
</div> </div>
{elseif $status == "M"} {elseif $status == "M"}
{if $from_id != $to_id} {if $from_id != $to_id}
<div class="diff_info"> <div class="diff_info">
{$from_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$from_id}&hb={$hash}&f={$file}">{$from_id}</a> -&gt; {$to_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$to_id}&hb={$hash}&f={$file}">{$to_id}</a> {$from_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$from_id}&hb={$hash}&f={$file}">{if $file}a/{$file}{else}{$from_id}{/if}</a> -&gt; {$to_type}:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$to_id}&hb={$hash}&f={$file}">{if $file}b/{$file}{else}{$to_id}{/if}</a>
</div> </div>
{/if} {/if}
{/if} {/if}
   
comments