{* * blame.tpl * gitphp: A PHP git repository browser * Component: Blame view template * * Copyright (C) 2010 Christopher Han *} {extends file='projectbase.tpl'} {block name=css} {if $geshicss} {/if} {/block} {block name=main} {include file='title.tpl' titlecommit=$commit} {include file='path.tpl' pathobject=$blob target='blob'}
{if $geshi} {$geshihead} {include file='blamedata.tpl'} {$geshibody} {$geshifoot} {else} {foreach from=$blob->GetData(true) item=blobline name=blob} {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]} {if $blamecommit} {cycle values="light,dark" assign=rowclass} {/if} {/foreach}
{if $blamecommit} {/if} {if $blamecommit} {$blamecommit->GetAuthorName()|escape} {/if} {$smarty.foreach.blob.iteration} {$blobline|escape}
{/if}
{/block}