{* * history.tpl * gitphp: A PHP git repository browser * Component: History view template * * Copyright (C) 2009 Christopher Han *} {include file='header.tpl'} {* Page header *} {include file='title.tpl' titlecommit=$commit} {include file='path.tpl' pathobject=$blob target='blob'} {* Display each history line *} {foreach from=$blob->GetHistory() item=historyitem} {assign var=historycommit value=$historyitem->GetCommit()} {/foreach}
{if $historycommit->GetAge() > 60*60*24*7*2}{$historycommit->GetCommitterEpoch()|date_format:"%Y-%m-%d"}{else}{$historycommit->GetAge()|agestring}{/if} {$historycommit->GetAuthorName()} GetTitle()) > 50}title="{$historycommit->GetTitle()}"{/if}>{$historycommit->GetTitle(50)} {include file='refbadges.tpl' commit=$historycommit}
{include file='footer.tpl'}