{* |
{* |
* Main |
* Main |
* |
* |
* Main page template |
* Main page template |
* |
* |
* @author Christopher Han <xiphux@gmail.com> |
* @author Christopher Han <xiphux@gmail.com> |
* @copyright Copyright (c) 2011 Christopher Han |
* @copyright Copyright (c) 2011 Christopher Han |
* @packge GitPHP |
* @packge GitPHP |
* @subpackage Template |
* @subpackage Template |
*} |
*} |
<!DOCTYPE html> |
<!DOCTYPE html> |
<html lang="{$currentprimarylocale}"> |
<html lang="{$currentprimarylocale}"> |
<!-- gitphp web interface {$version}, (C) 2006-2011 Christopher Han <xiphux@gmail.com> --> |
<!-- gitphp web interface {$version}, (C) 2006-2011 Christopher Han <xiphux@gmail.com> --> |
<head> |
<head> |
<title> |
<title> |
{block name=title} |
{block name=title} |
{$pagetitle} |
{$pagetitle} |
{/block} |
{/block} |
</title> |
</title> |
{block name=feeds} |
{block name=feeds} |
{/block} |
{/block} |
{block name=links} |
{block name=links} |
{/block} |
{/block} |
{if file_exists('css/gitphp.min.css')} |
{if file_exists('css/gitphp.min.css')} |
<link rel="stylesheet" href="{$baseurl}/css/gitphp.min.css" type="text/css" /> |
<link rel="stylesheet" href="{$baseurl}/css/gitphp.min.css" type="text/css" /> |
{else} |
{else} |
<link rel="stylesheet" href="{$baseurl}/css/gitphp.css" type="text/css" /> |
<link rel="stylesheet" href="{$baseurl}/css/gitphp.css" type="text/css" /> |
{/if} |
{/if} |
{if file_exists("css/$stylesheet.min.css")} |
{if file_exists("css/$stylesheet.min.css")} |
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.min.css" type="text/css" /> |
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.min.css" type="text/css" /> |
{else} |
{else} |
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.css" type="text/css" /> |
<link rel="stylesheet" href="{$baseurl}/css/{$stylesheet}.css" type="text/css" /> |
{/if} |
{/if} |
<link rel="stylesheet" href="{$baseurl}/css/ext/jquery.qtip.min.css" type="text/css" /> |
<link rel="stylesheet" href="{$baseurl}/css/ext/jquery.qtip.min.css" type="text/css" /> |
{block name=css} |
{block name=css} |
{/block} |
{/block} |
{if $javascript} |
{if $javascript} |
<script type="text/javascript"> |
<script type="text/javascript"> |
var require = { |
var require = { |
baseUrl: '{$baseurl}/js', |
baseUrl: '{$baseurl}/js', |
paths: { |
paths: { |
jquery: [ |
jquery: [ |
{if $googlejs} |
{if $googlejs} |
'https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min', |
'https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min', |
{/if} |
{/if} |
'ext/jquery-1.8.1.min' |
'ext/jquery-1.8.1.min' |
], |
], |
d3: 'ext/d3.v2.min', |
d3: 'ext/d3.v2.min', |
qtip: 'ext/jquery.qtip.min', |
qtip: 'ext/jquery.qtip.min', |
modernizr: 'ext/modernizr.custom' |
modernizr: 'ext/modernizr.custom' |
}, |
}, |
config: { |
config: { |
'modules/snapshotformats': { |
'modules/snapshotformats': { |
formats: { |
formats: { |
{foreach from=$snapshotformats key=format item=extension name=formats} |
{foreach from=$snapshotformats key=format item=extension name=formats} |
"{$format}": "{$extension}"{if !$smarty.foreach.formats.last},{/if} |
"{$format}": "{$extension}"{if !$smarty.foreach.formats.last},{/if} |
{/foreach} |
{/foreach} |
} |
} |
}, |
}, |
{if $project} |
{if $project} |
'modules/getproject': { |
'modules/getproject': { |
project: '{$project->GetProject()}' |
project: '{$project->GetProject()}' |
}, |
}, |
{/if} |
{/if} |
'modules/geturl': { |
'modules/geturl': { |
baseurl: '{$baseurl}/' |
baseurl: '{$baseurl}/' |
}, |
}, |
'modules/resources': { |
'modules/resources': { |
resources: { |
resources: { |
Loading: "{t escape='js'}Loading…{/t}", |
Loading: "{t escape='js'}Loading…{/t}", |
LoadingBlameData: "{t escape='js'}Loading blame data…{/t}", |
LoadingBlameData: "{t escape='js'}Loading blame data…{/t}", |
Snapshot: "{t escape='js'}snapshot{/t}", |
Snapshot: "{t escape='js'}snapshot{/t}", |
NoMatchesFound: '{t escape=no}No matches found for "%1"{/t}' |
NoMatchesFound: '{t escape=no}No matches found for "%1"{/t}' |
} |
} |
} |
} |
} |
} |
}; |
}; |
{block name=javascript} |
{block name=javascript} |
{if file_exists('js/common.min.js')} |
{if file_exists('js/common.min.js')} |
require.paths.common = 'common.min'; |
require.paths.common = 'common.min'; |
{/if} |
{/if} |
require.deps = ['common']; |
require.deps = ['common']; |
{/block} |
{/block} |
</script> |
</script> |
<script type="text/javascript" src="{$baseurl}/js/ext/require.js"></script> |
<script type="text/javascript" src="{$baseurl}/js/ext/require.js"></script> |
{/if} |
{/if} |
</head> |
</head> |
<body> |
<body> |
<div class="page_header"> |
<div class="page_header"> |
{if $loginenabled} |
{if $loginenabled} |
<div class="login"> |
<div class="login"> |
{if $loggedinuser} |
{if $loggedinuser} |
<a href="{geturl action=logout}" />logout</a> |
<a href="{geturl action=logout}" />logout {$loggedinuser|escape}</a> |
{else} |
{else} |
<a href="{geturl action=login}" />login</a> |
<a href="{geturl action=login}" />login</a> |
{/if} |
{/if} |
</div> |
</div> |
{/if} |
{/if} |
{if $supportedlocales} |
{if $supportedlocales} |
<div class="lang_select"> |
<div class="lang_select"> |
<form action="{$requesturl}" method="get" id="frmLangSelect"> |
<form action="{$requesturl}" method="get" id="frmLangSelect"> |
<div> |
<div> |
{foreach from=$requestvars key=var item=val} |
{foreach from=$requestvars key=var item=val} |
{if $var != "l"} |
{if $var != "l"} |
<input type="hidden" name="{$var}" value="{$val|escape}" /> |
<input type="hidden" name="{$var}" value="{$val|escape}" /> |
{/if} |
{/if} |
{/foreach} |
{/foreach} |
<label for="selLang">{t}language:{/t}</label> |
<label for="selLang">{t}language:{/t}</label> |
<select name="l" id="selLang"> |
<select name="l" id="selLang"> |
{foreach from=$supportedlocales key=locale item=language} |
{foreach from=$supportedlocales key=locale item=language} |
<option {if $locale == $currentlocale}selected="selected"{/if} value="{$locale}">{if $language}{$language} ({$locale}){else}{$locale}{/if}</option> |
<option {if $locale == $currentlocale}selected="selected"{/if} value="{$locale}">{if $language}{$language} ({$locale}){else}{$locale}{/if}</option> |
{/foreach} |
{/foreach} |
</select> |
</select> |
<input type="submit" value="{t}set{/t}" id="btnLangSet" /> |
<input type="submit" value="{t}set{/t}" id="btnLangSet" /> |
</div> |
</div> |
</form> |
</form> |
</div> |
</div> |
{/if} |
{/if} |
{block name=header} |
{block name=header} |
<a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> / |
<a href="{geturl}">{if $homelink}{$homelink}{else}{t}projects{/t}{/if}</a> / |
{/block} |
{/block} |
</div> |
</div> |
{block name=main} |
{block name=main} |
|
|
{/block} |
{/block} |
<div class="page_footer"> |
<div class="page_footer"> |
{block name=footer} |
{block name=footer} |
{/block} |
{/block} |
</div> |
</div> |
<div class="attr_footer"> |
<div class="attr_footer"> |
<a href="http://www.gitphp.org/" target="_blank">GitPHP by Chris Han</a> |
<a href="http://www.gitphp.org/" target="_blank">GitPHP by Chris Han</a> |
</div> |
</div> |
</body> |
</body> |
</html> |
</html> |
|
|