{* * projectlist.tpl * gitphp: A PHP git repository browser * Component: Project list template * * Copyright (C) 2009 Christopher Han *} {include file='header.tpl'}
{if file_exists('templates/hometext.tpl') } {include file='hometext.tpl'} {else} {* default header *}

git source code archive

{/if}
{t}Search projects{/t}: X {if $javascript}{/if}
{foreach name=projects from=$projectlist item=proj} {if $smarty.foreach.projects.first} {* Header *} {if $order == "project"} {else} {/if} {if $order == "descr"} {else} {/if} {if $order == "owner"} {else} {/if} {if $order == "age"} {else} {/if} {/if} {if $currentcategory != $proj->GetCategory()} {assign var=currentcategory value=$proj->GetCategory()} {if $currentcategory != ''} {/if} {/if} {assign var=projecthead value=$proj->GetHeadCommit()} {foreachelse} {if $search}
{t 1=$search}No matches found for "%1"{/t}
{else}
{t}No projects found{/t}
{/if} {/foreach}
{t}Project{/t}{t}Project{/t}{t}Description{/t}{t}Description{/t}{t}Owner{/t}{t}Owner{/t}{t}Last Change{/t}{t}Last Change{/t}{t}Actions{/t}
{$currentcategory}
{$proj->GetProject()} {$proj->GetDescription()} {$proj->GetOwner()|escape:'html'} {if $projecthead} {if $proj->GetAge() < 7200} {* 60*60*2, or 2 hours *} {$proj->GetAge()|agestring} {elseif $proj->GetAge() < 172800} {* 60*60*24*2, or 2 days *} {$proj->GetAge()|agestring} {else} {$proj->GetAge()|agestring} {/if} {else} {t}No commits{/t} {/if}
{include file='footer.tpl'}