123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- {*
- * Main
- *
- * Main page template
- *
- * @author Christopher Han <xiphux@gmail.com>
- * @copyright Copyright (c) 2011 Christopher Han
- * @packge GitPHP
- * @subpackage Template
- *}
- <!DOCTYPE html>
- <html lang="{$currentprimarylocale}">
- <!-- 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}
- <script type="text/javascript">
- var require = {
- baseUrl: '{$baseurl}/js',
- paths: {
- jquery: [
- {if $googlejs}
- '//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min',
- {/if}
- 'ext/jquery-1.8.2.min'
- ],
- d3: 'ext/d3.v2.min',
- qtip: 'ext/jquery.qtip.min',
- modernizr: 'ext/modernizr.custom'
- },
- config: {
- 'modules/snapshotformats': {
- formats: {
- {foreach from=$snapshotformats key=format item=extension name=formats}
- "{$format}": "{$extension}"{if !$smarty.foreach.formats.last},{/if}
- {/foreach}
- }
- },
- {if $project}
- 'modules/getproject': {
- project: '{$project->GetProject()}'
- },
- {/if}
- {if $debug}
- 'common': {
- debug: true
- },
- {/if}
- 'modules/geturl': {
- baseurl: '{$baseurl}/'
- },
- 'modules/resources': {
- resources: {
- Loading: "{t escape='js'}Loading…{/t}",
- LoadingBlameData: "{t escape='js'}Loading blame data…{/t}",
- Snapshot: "{t escape='js'}snapshot{/t}",
- NoMatchesFound: '{t escape=no}No matches found for "%1"{/t}',
- UsernameLabel: "{t escape='js'}username:{/t}",
- PasswordLabel: "{t escape='js'}password:{/t}",
- Login: "{t escape='js'}login{/t}",
- AnErrorOccurredWhileLoggingIn: "{t escape='js'}An error occurred while logging in{/t}",
- LoginTitle: "{t escape='js'}Login{/t}",
- UsernameIsRequired: "{t escape='js'}Username is required{/t}",
- PasswordIsRequired: "{t escape='js'}Password is required{/t}"
- }
- }
- }
- };
- {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">
- {if $loginenabled}
- <div class="login">
- {if $loggedinuser}
- <a href="{geturl action=logout}" />{t 1=$loggedinuser}logout %1{/t}</a>
- {else if $action == 'login'}
- {t}login{/t}
- {else}
- <a href="{geturl action=login}" class="loginLink" />{t}login{/t}</a>
- {/if}
- </div>
- {/if}
- {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>
|