mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-22 22:04:00 +03:00
a554ac1950
when we set a default language server side, we want to display that on the login page. For that we have to use the 'language' variable in the index template. Also set the fallback to '__default__' instead of 'en' so that we show 'Default (English)'. Was reported in the forum: https://forum.proxmox.com/threads/set-default-language-on-server-login-screen-to-german.114431/ Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
51 lines
2.3 KiB
Handlebars
51 lines
2.3 KiB
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<title>{{ NodeName }} - Proxmox Backup Server</title>
|
|
<link rel="icon" sizes="128x128" href="/images/logo-128.png" />
|
|
<link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
|
|
<link rel="stylesheet" type="text/css" href="/extjs/theme-crisp/resources/theme-crisp-all.css" />
|
|
<link rel="stylesheet" type="text/css" href="/extjs/crisp/resources/charts-all.css" />
|
|
<link rel="stylesheet" type="text/css" href="/fontawesome/css/font-awesome.css" />
|
|
<link rel="stylesheet" type="text/css" href="/widgettoolkit/css/ext6-pmx.css" />
|
|
<link rel="stylesheet" type="text/css" href="/css/ext6-pbs.css" />
|
|
{{#if language}}
|
|
<script type='text/javascript' src='/locale/pbs-lang-{{ language }}.js'></script>
|
|
{{else}}
|
|
<script type='text/javascript'> function gettext(buf) { return buf; } </script>
|
|
{{/if}}
|
|
{{#if debug}}
|
|
<script type="text/javascript" src="/extjs/ext-all-debug.js"></script>
|
|
<script type="text/javascript" src="/extjs/charts-debug.js"></script>
|
|
{{else}}
|
|
<script type="text/javascript" src="/extjs/ext-all.js"></script>
|
|
<script type="text/javascript" src="/extjs/charts.js"></script>
|
|
{{/if}}
|
|
<script type="text/javascript">
|
|
Proxmox = {
|
|
Setup: { auth_cookie_name: 'PBSAuthCookie' },
|
|
NodeName: "{{ NodeName }}",
|
|
UserName: "{{ UserName }}",
|
|
defaultLang: "{{ language }}",
|
|
CSRFPreventionToken: "{{ CSRFPreventionToken }}",
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="/widgettoolkit/proxmoxlib.js"></script>
|
|
<script type="text/javascript" src="/extjs/locale/locale-en.js"></script>
|
|
<script type="text/javascript">
|
|
Ext.History.fieldid = 'x-history-field';
|
|
</script>
|
|
<script type="text/javascript" src="/qrcodejs/qrcode.min.js"></script>
|
|
<script type="text/javascript" src="/js/proxmox-backup-gui.js"></script>
|
|
</head>
|
|
<body>
|
|
<!-- Fields required for history management -->
|
|
<form id="history-form" class="x-hidden">
|
|
<input type="hidden" id="x-history-field"/>
|
|
</form>
|
|
</body>
|
|
</html>
|