nav.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {*
  2. * Nav
  3. *
  4. * Nav links template fragment
  5. *
  6. * @author Christopher Han <xiphux@gmail.com>
  7. * @copyright Copyright (c) 2010 Christopher Han
  8. * @package GitPHP
  9. * @subpackage Template
  10. *}
  11. {if $current=='summary'}
  12. {t}summary{/t}
  13. {else}
  14. <a href="{geturl project=$project}">{t}summary{/t}</a>
  15. {/if}
  16. |
  17. {if $current=='shortlog' || !$commit}
  18. {t}shortlog{/t}
  19. {else}
  20. <a href="{geturl project=$project action=shortlog hash=$logcommit mark=$logmark}">{t}shortlog{/t}</a>
  21. {/if}
  22. |
  23. {if $current=='log' || !$commit}
  24. {t}log{/t}
  25. {else}
  26. <a href="{geturl project=$project action=log hash=$logcommit mark=$logmark}">{t}log{/t}</a>
  27. {/if}
  28. |
  29. {if $current=='commit' || !$commit}
  30. {t}commit{/t}
  31. {else}
  32. <a href="{geturl project=$project action=commit hash=$commit}">{t}commit{/t}</a>
  33. {/if}
  34. |
  35. {if $current=='commitdiff' || !$commit}
  36. {t}commitdiff{/t}
  37. {else}
  38. <a href="{geturl project=$project action=commitdiff hash=$commit}">{t}commitdiff{/t}</a>
  39. {/if}
  40. |
  41. {if $current=='tree' || !$commit}
  42. {t}tree{/t}
  43. {else}
  44. <a href="{geturl project=$project action=tree hashbase=$treecommit hash=$tree}">{t}tree{/t}</a>
  45. {/if}