{* * blob.tpl * gitphp: A PHP git repository browser * Component: Blob view template * * Copyright (C) 2009 Christopher Han *} {extends file='projectbase.tpl'} {block name=css} {if $geshicss} {/if} {/block} {block name=javascript} require.deps = ['blob']; {if file_exists('js/blob.min.js')} require.paths.blob = "blob.min"; {/if} {/block} {block name=main} {include file='title.tpl' titlecommit=$commit} {include file='path.tpl' pathobject=$blob target='blobplain'}
{if $datatag} {* We're trying to display an image *}
{elseif $geshi} {* We're using the highlighted output from geshi *} {$geshiout} {else} {* Just plain display *}
{foreach from=$bloblines item=line name=bloblines}
{$smarty.foreach.bloblines.iteration}
{/foreach}
{foreach from=$bloblines item=line name=bloblines}
{$line|escape}
{/foreach}
{/if}
{/block}