forked from john-peterson/gitphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.tpl
61 lines (46 loc) · 1.69 KB
/
project.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
50
51
52
53
54
55
56
57
58
59
60
61
{*
* project.tpl
* gitphp: A PHP git repository browser
* Component: Project summary template
*
* Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
*}
{extends file='projectbase.tpl'}
{block name=main}
<div class="page_nav">
{include file='nav.tpl' commit=$head current='summary'}
<br /><br />
</div>
{include file='title.tpl'}
{* Project brief *}
<table>
<tr><td>{t}description{/t}</td><td>{$project->GetDescription()|escape}</td></tr>
<tr><td>{t}owner{/t}</td><td>{$project->GetOwner()|escape:'html'}</td></tr>
{if $head}
<tr><td>{t}last change{/t}</td><td><time datetime="{$head->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}">{$head->GetCommitterEpoch()|date_format:"%a, %d %b %Y %H:%M:%S %z"}</time></td></tr>
{/if}
{if $project->GetCloneUrl()}
<tr><td>{t}clone url{/t}</td><td><a href="{$project->GetCloneUrl()}" rel="nofollow">{$project->GetCloneUrl()}</a></td></tr>
{/if}
{if $project->GetPushUrl()}
<tr><td>{t}push url{/t}</td><td><a href="{$project->GetPushUrl()}" rel="nofollow">{$project->GetPushUrl()}</a></td></tr>
{/if}
{if $project->GetWebsite()}
<tr><td>{t}website{/t}</td><td><a href="{$project->GetWebsite()}" rel="nofollow">{$project->GetWebsite()}</a></td></tr>
{/if}
</table>
{if !$head}
{include file='title.tpl' target='shortlog' disablelink=true}
{else}
{include file='title.tpl' target='shortlog'}
{/if}
{include file='shortloglist.tpl' source='summary'}
{if $taglist}
{include file='title.tpl' target='tags'}
{include file='taglist.tpl' source=summary}
{/if}
{if $headlist}
{include file='title.tpl' target='heads'}
{include file='headlist.tpl' source=summary}
{/if}
{/block}