project.tpl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {*
  2. * project.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Project summary template
  5. *
  6. * Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
  7. *}
  8. {extends file='projectbase.tpl'}
  9. {block name=main}
  10. <div class="page_nav">
  11. {include file='nav.tpl' commit=$head current='summary'}
  12. <br /><br />
  13. </div>
  14. {include file='title.tpl'}
  15. {* Project brief *}
  16. <table>
  17. <tr><td>{t}description{/t}</td><td>{$project->GetDescription()|escape}</td></tr>
  18. <tr><td>{t}owner{/t}</td><td>{$project->GetOwner()|escape:'html'}</td></tr>
  19. {if $head}
  20. <tr><td>{t}last change{/t}</td><td><time datetime="{$head->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}">{$head->GetCommitterEpoch()|date_format:"%a, %d %b %Y %H:%M:%S %z"}</time></td></tr>
  21. {/if}
  22. {if $project->GetCloneUrl()}
  23. <tr><td>{t}clone url{/t}</td><td><a href="{$project->GetCloneUrl()}" rel="nofollow">{$project->GetCloneUrl()}</a></td></tr>
  24. {/if}
  25. {if $project->GetPushUrl()}
  26. <tr><td>{t}push url{/t}</td><td><a href="{$project->GetPushUrl()}" rel="nofollow">{$project->GetPushUrl()}</a></td></tr>
  27. {/if}
  28. {if $project->GetWebsite()}
  29. <tr><td>{t}website{/t}</td><td><a href="{$project->GetWebsite()}" rel="nofollow">{$project->GetWebsite()}</a></td></tr>
  30. {/if}
  31. </table>
  32. {if !$head}
  33. {include file='title.tpl' target='shortlog' disablelink=true}
  34. {else}
  35. {include file='title.tpl' target='shortlog'}
  36. {/if}
  37. {include file='shortloglist.tpl' source='summary'}
  38. {if $taglist}
  39. {include file='title.tpl' target='tags'}
  40. {include file='taglist.tpl' source=summary}
  41. {/if}
  42. {if $headlist}
  43. {include file='title.tpl' target='heads'}
  44. {include file='headlist.tpl' source=summary}
  45. {/if}
  46. {/block}