Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
711c6787
Commit
711c6787
authored
Aug 05, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile: add missing file
parent
7e365988
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
TouchIndex.pm
PVE/TouchIndex.pm
+45
-0
No files found.
PVE/TouchIndex.pm
0 → 100644
View file @
711c6787
package
PVE::
TouchIndex
;
use
strict
;
use
warnings
;
sub
get_index
{
my
(
$lang
,
$username
,
$csrftoken
,
$console
)
=
@_
;
my
$page
=
<<_EOD;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Proxmox Virtual Environment</title>
<link rel="stylesheet" type="text/css" href="/pve2/touch/resources/css/sencha-touch.css" />
<link rel="stylesheet" type="text/css" href="/pve2/touch/resources/css/pve.css" />
_EOD
my
$langfile
=
"
/usr/share/pve-manager/locale/pve-lang-
${lang}
.js
";
if
(
-
f
$langfile
)
{
$page
.=
"
<script type='text/javascript' src='/pve2/locale/pve-lang-
${lang}
.js'></script>
";
}
else
{
$page
.=
'
<script type="text/javascript">function gettext(buf) { return buf; }</script>
';
}
$page
.=
<<_EOD;
<script type="text/javascript" src="/pve2/touch/sencha-touch-all-debug.js"></script>
<script type="text/javascript" src="/pve2/touch/pvemanager-mobile.js"></script>
<script type="text/javascript">
if (typeof(PVE) === 'undefined') PVE = {};
PVE.UserName = '$username'
PVE.CSRFPreventionToken = '$csrftoken';
</script>
</head>
<body>
</body>
</html>
_EOD
return
$page
;
}
1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment