Use readable names in blobdiff and blobdiff_plain
[gitphp.git] / templates / blobdiff_header.tpl
blob:a/templates/blobdiff_header.tpl -> blob:b/templates/blobdiff_header.tpl
--- a/templates/blobdiff_header.tpl
+++ b/templates/blobdiff_header.tpl
@@ -9,5 +9,5 @@
  <div class="page_path"><b>/{$file}</b></div>
  {/if}
  <div class="page_body">
- <div class="diff_info">blob:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$hashparent}&hb={$hashbase}&f={$file}">{$hashparent}</a> -&gt; blob:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$hash}&hb={$hashbase}&f={$file}">{$hash}</a></div>
+ <div class="diff_info">blob:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$hashparent}&hb={$hashbase}&f={$file}">{if $file}a/{$file}{else}{$hashparent}{/if}</a> -&gt; blob:<a href="{$SCRIPT_NAME}?p={$project}&a=blob&h={$hash}&hb={$hashbase}&f={$file}">{if $file}b/{$file}{else}{$hash}{/if}</a></div>
 

comments