{* * blame.tpl * gitphp: A PHP git repository browser * Component: Blame view template * * Copyright (C) 2010 Christopher Han *} {include file='header.tpl'} {* If we managed to look up commit info, we have enough info to display the full header - othewise just use a simple header *}
{if $fullnav} {$title} {if $hashbaseref} {$hashbaseref} {/if} {else}
{$hash}
{/if}
{* The path to the file, with directories broken into tree links *} [{$project}] / {foreach from=$paths item=path name=paths} {if $smarty.foreach.paths.last} {$path.short} {else} {$path.short} / {/if} {/foreach}
{counter name=linecount start=0 print=false} {foreach from=$blamedata item=blameitem} {cycle values="light,dark" assign=rowclass} {foreach from=$blameitem.lines name=linegroup item=blameline} {counter name=linecount assign=linenum} {/foreach} {/foreach}
{$linenum} {$blameitem.commitdata.authordate} {if $smarty.foreach.linegroup.first}{$blameitem.commitdata.author}{/if} {if $blameitem.commit}{if $smarty.foreach.linegroup.first}commit{/if}{/if} {$blameline}
{include file='footer.tpl'}