{* * searchfiles.tpl * gitphp: A PHP git repository browser * Component: Search files template * * Copyright (C) 2009 Christopher Han *} {include file='header.tpl'} {* Nav *}
{$commit->GetTitle()}
{* Print each match *} {foreach from=$results item=result key=path} {assign var=resultobject value=$result.object} {if $resultobject instanceof GitPHP_Tree} {else} {/if} {/foreach} {if $hasmore} {/if}
{$path} {$path|highlight:$search} {foreach from=$result.lines item=line name=match key=lineno} {if $smarty.foreach.match.first}
{/if}{$lineno}. {$line|highlight:$search:50:true}
{/foreach}
{t}next{/t}
{include file='footer.tpl'}