shortlog.tpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {*
  2. * shortlog.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Shortlog 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=shortlog hash=$commit page=$page-1 mark=$mark}" />
  12. {/if}
  13. {if $hasmorerevs}
  14. <link rel="next" href="{geturl project=$project action=shortlog hash=$commit page=$page+1 mark=$mark}" />
  15. {/if}
  16. {/block}
  17. {block name=main}
  18. {* Nav *}
  19. <div class="page_nav">
  20. {include file='nav.tpl' current='shortlog' logcommit=$commit treecommit=$commit logmark=$mark}
  21. <br />
  22. {if ($commit && $head) && (($commit->GetHash() != $head->GetHash()) || ($page > 0))}
  23. <a href="{geturl project=$project action=shortlog mark=$mark}">{t}HEAD{/t}</a>
  24. {else}
  25. {t}HEAD{/t}
  26. {/if}
  27. &sdot;
  28. {if $page > 0}
  29. <a href="{geturl project=$project action=shortlog hash=$commit page=$page-1 mark=$mark}" accesskey="p" title="Alt-p">{t}prev{/t}</a>
  30. {else}
  31. {t}prev{/t}
  32. {/if}
  33. &sdot;
  34. {if $hasmorerevs}
  35. <a href="{geturl project=$project action=shortlog hash=$commit page=$page+1 mark=$mark}" accesskey="n" title="Alt-n">{t}next{/t}</a>
  36. {else}
  37. {t}next{/t}
  38. {/if}
  39. <br />
  40. {if $mark}
  41. {t}selected{/t} &sdot;
  42. <a href="{geturl project=$project action=commit hash=$mark}" class="list commitTip" {if strlen($mark->GetTitle()) > 30}title="{$mark->GetTitle()|escape}"{/if}><strong>{$mark->GetTitle(30)|escape:'html'}</strong></a>
  43. &sdot;
  44. <a href="{geturl project=$project action=shortlog hash=$commit page=$page}">{t}deselect{/t}</a>
  45. <br />
  46. {/if}
  47. </div>
  48. {include file='title.tpl' target='summary'}
  49. {include file='shortloglist.tpl' source='shortlog'}
  50. {/block}