tags.tpl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {*
  2. * tags.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Tag 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=tags page=$page-1}" />
  12. {/if}
  13. {if $hasmoretags}
  14. <link rel="next" href="{geturl project=$project action=tags 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=tags}">{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=tags page=$page-1}">{t}prev{/t}</a>
  30. {else}
  31. {t}prev{/t}
  32. {/if}
  33. &sdot;
  34. {if $hasmoretags}
  35. <a href="{geturl project=$project action=tags 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. {* Display tags *}
  42. {include file='taglist.tpl' source=tags}
  43. {/block}