{* * projectlist.tpl * gitphp: A PHP git repository browser * Component: Project list template * * Copyright (C) 2009 Christopher Han *} {include file='header.tpl'} {include file='hometext.tpl'} {if $message} {* Something is wrong; display an error message instead of trying to list *} {include file='message.tpl'} {else} {* Header *} {if $order == "project"} {else} {/if} {if $order == "descr"} {else} {/if} {if $order == "owner"} {else} {/if} {if $order == "age"} {else} {/if} {if $categorizedprojects} {* Show categorized; categorized project lists nested associatively in the project list by category key *} {foreach from=$categorizedprojects key=categ item=plist} {if $categ != "none"} {/if} {section name=proj loop=$plist} {/section} {/foreach} {else} {* Show flat uncategorized project array *} {section name=proj loop=$projects} {/section} {/if}
ProjectProjectDescriptionDescriptionOwnerOwnerLast ChangeLast ChangeActions
{$categ}
{$plist[proj].project} {$plist[proj].descr} {$plist[proj].owner} {if $plist[proj].age < 7200} {* 60*60*2, or 2 hours *} {$plist[proj].age_string} {elseif $plist[proj].age < 172800} {* 60*60*24*2, or 2 days *} {$plist[proj].age_string} {else} {$plist[proj].age_string} {/if}
{$projects[proj].project} {$projects[proj].descr} {$projects[proj].owner} {if $projects[proj].age < 7200} {* 60*60*2, or 2 hours *} {$projects[proj].age_string} {elseif $projects[proj].age < 172800} {* 60*60*24*2, or 2 days *} {$projects[proj].age_string} {else} {$projects[proj].age_string} {/if}
{/if} {include file='footer.tpl'}