pmg-gui/index.html.tpl
Dietmar Maurer 508f46c2af rename index.html -> index.html.tpl
use var token instead of csrftoken.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-03-09 17:20:08 +01:00

45 lines
2.0 KiB
Smarty

[% DEFAULT lang = "en" %]
<!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 Mail Gateway</title>
<link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
<link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
<link rel="stylesheet" type="text/css" href="/pve2/ext6/theme-crisp/resources/theme-crisp-all.css" />
<link rel="stylesheet" type="text/css" href="/pve2/ext6/crisp/resources/charts-all.css" />
<link rel="stylesheet" type="text/css" href="/fontawesome/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pmg.css" />
[% IF debug %]
<script type="text/javascript" src="/pve2/ext6/ext-all-debug.js"></script>
<script type="text/javascript" src="/pve2/ext6/charts-debug.js"></script>
[% ELSE %]
<script type="text/javascript" src="/pve2/ext6/ext-all.js"></script>
<script type="text/javascript" src="/pve2/ext6/charts.js"></script>
[% END %]
<script type="text/javascript">
Proxmox = {
Setup: { auth_cookie_name: 'PMGAuthCookie' },
NodeName: '[% nodename %]',
UserName: '[% username %]',
CSRFPreventionToken: '[% token %]'
};
</script>
<script type="text/javascript" src="/proxmoxlib.js"></script>
<script type="text/javascript" src="/pve2/js/pmgmanagerlib.js"></script>
<script type="text/javascript" src="/pve2/ext6/locale/locale-[% lang %].js"></script>
<script type="text/javascript">
Ext.History.fieldid = 'x-history-field';
Ext.onReady(function() { Ext.create('PMG.StdWorkspace');});
</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>