heads.tpl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {*
  2. * heads.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Head view template
  5. *
  6. * Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
  7. *}
  8. {extends file='projectbase.tpl'}
  9. {block name=links append}
  10. {if $page > 0}
  11. <link rel="prev" href="{geturl project=$project action=heads page=$page-1}" />
  12. {/if}
  13. {if $hasmoreheads}
  14. <link rel="next" href="{geturl project=$project action=heads page=$page+1}" />
  15. {/if}
  16. {/block}
  17. {block name=main}
  18. {* Nav *}
  19. <div class="page_nav">
  20. {include file='nav.tpl' commit=$head treecommit=$head}
  21. <br />
  22. {if $page > 0}
  23. <a href="{geturl project=$project action=heads}">{t}first{/t}</a>
  24. {else}
  25. {t}first{/t}
  26. {/if}
  27. &sdot;
  28. {if $page > 0}
  29. <a href="{geturl project=$project action=heads page=$page-1}">{t}prev{/t}</a>
  30. {else}
  31. {t}prev{/t}
  32. {/if}
  33. &sdot;
  34. {if $hasmoreheads}
  35. <a href="{geturl project=$project action=heads page=$page+1}">{t}next{/t}</a>
  36. {else}
  37. {t}next{/t}
  38. {/if}
  39. </div>
  40. {include file='title.tpl' target='summary'}
  41. {include file='headlist.tpl'}
  42. {/block}