{* * 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}
{* The path to the file, with directories broken into tree links *} [{$project->GetProject()}] / {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} {if $smarty.foreach.linegroup.first} {if $blameitem.commit} {$blameitem.commitdata.authortime|date_format:"%F %X"} {else} {$blameitem.commitdata.authortime|date_format:"%F %X"} {/if} {/if} {if $smarty.foreach.linegroup.first}{$blameitem.commitdata.author}{/if} {$blameline|escape}
{include file='footer.tpl'}