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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
{*
* Main
*
* Main page template
*
* @author Christopher Han <xiphux@gmail.com>
* @copyright Copyright (c) 2011 Christopher Han
* @packge GitPHP
* @subpackage Template
*}
<!DOCTYPE html>
<html>
<!-- gitphp web interface {$version}, (C) 2006-2011 Christopher Han <xiphux@gmail.com> -->
<head>
<title>
{block name=title}
{$pagetitle}
{/block}
</title>
{block name=feeds}
{/block}
{block name=links}
{/block}
{if file_exists('css/gitphp.min.css')}
<link rel="stylesheet" href="{$baseurl}/css/gitphp.min.css" type="text/css" />
{else}
<link rel="stylesheet" href="{$baseurl}/css/gitphp.css" type="text/css" />
{/if}
{if file_exists("css/$stylesheet.min.css")}
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.min.css" type="text/css" />
{else}
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.css" type="text/css" />
{/if}
<link rel="stylesheet" href="{$baseurl}/css/ext/jquery.qtip.min.css" type="text/css" />
{block name=css}
{/block}
{if $javascript}
{include file='jsconst.tpl'}
<script type="text/javascript">
var require = {ldelim}
baseUrl: GitPHP.BaseUrl + 'js',
paths: {ldelim}
jquery: [
{if $googlejs}
'https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min',
{/if}
'ext/jquery-1.8.1.min'
],
d3: 'ext/d3.v2.min',
qtip: 'ext/jquery.qtip.min'
{rdelim},
config: {ldelim}
'modules/snapshotformats': {ldelim}
formats: {ldelim}{foreach from=$snapshotformats key=format item=extension name=formats}"{$format}": "{$extension}"{if !$smarty.foreach.formats.last},{/if}{/foreach}{rdelim}
{rdelim}
{rdelim}
{rdelim};
{block name=javascript}
{if file_exists('js/common.min.js')}
require.paths.common = 'common.min';
{/if}
require.deps = ['common'];
{/block}
</script>
<script type="text/javascript" src="{$baseurl}/js/ext/require.js"></script>
{/if}
</head>
<body>
<div class="page_header">
<a href="http://git-scm.com" title="git homepage" rel="nofollow">
<img src="{$baseurl}/images/git-logo.png" width="72" height="27" alt="git" class="logo" />
</a>
{if $supportedlocales}
<div class="lang_select">
<form action="{$requesturl}" method="get" id="frmLangSelect">
<div>
{foreach from=$requestvars key=var item=val}
{if $var != "l"}
<input type="hidden" name="{$var}" value="{$val|escape}" />
{/if}
{/foreach}
<label for="selLang">{t}language:{/t}</label>
<select name="l" id="selLang">
{foreach from=$supportedlocales key=locale item=language}
<option {if $locale == $currentlocale}selected="selected"{/if} value="{$locale}">{if $language}{$language} ({$locale}){else}{$locale}{/if}</option>
{/foreach}
</select>
<input type="submit" value="{t}set{/t}" id="btnLangSet" />
</div>
</form>
</div>
{/if}
{block name=header}
<a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> /
{/block}
</div>
{block name=main}
{/block}
<div class="page_footer">
{block name=footer}
{/block}
</div>
<div class="attr_footer">
<a href="http://www.gitphp.org/" target="_blank">GitPHP by Chris Han</a>
</div>
</body>
</html>
|