Merge branch 'master' of http://git.gitphp.org/gitphp master
[gitphp.git] / templates / heads.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{*
 *  heads.tpl
 *  gitphp: A PHP git repository browser
 *  Component: Head view template
 *
 *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
 *}
{extends file='projectbase.tpl'}

{block name=links append}
{if $page > 0}
<link rel="prev" href="{geturl project=$project action=heads page=$page-1}" />
{/if}
{if $hasmoreheads}
<link rel="next" href="{geturl project=$project action=heads page=$page+1}" />
{/if}
{/block}

{block name=main}

 {* Nav *}
 <div class="page_nav">
   {include file='nav.tpl' commit=$head treecommit=$head}
   <br />
   {if $page > 0}
     <a href="{geturl project=$project action=heads}">{t}first{/t}</a>
   {else}
     {t}first{/t}
   {/if}
     &sdot;
   {if $page > 0}
     <a href="{geturl project=$project action=heads page=$page-1}">{t}prev{/t}</a>
   {else}
     {t}prev{/t}
   {/if}
     &sdot;
   {if $hasmoreheads}
     <a href="{geturl project=$project action=heads page=$page+1}">{t}next{/t}</a>
   {else}
     {t}next{/t}
   {/if}
 </div>

 {include file='title.tpl' target='summary'}

 {include file='headlist.tpl'}

{/block}

comments