From ac750b0f8936c2a57fda4041cbb08343723ed5a9 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 5 Aug 2014 09:16:05 +0200 Subject: [PATCH] mobile: add missing file --- PVE/TouchIndex.pm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 PVE/TouchIndex.pm diff --git a/PVE/TouchIndex.pm b/PVE/TouchIndex.pm new file mode 100644 index 00000000..9679c466 --- /dev/null +++ b/PVE/TouchIndex.pm @@ -0,0 +1,45 @@ +package PVE::TouchIndex; + +use strict; +use warnings; + +sub get_index { + my ($lang, $username, $csrftoken, $console) = @_; + + my $page = <<_EOD; + + + + + Proxmox Virtual Environment + + + +_EOD + + my $langfile = "/usr/share/pve-manager/locale/pve-lang-${lang}.js"; + if (-f $langfile) { + $page .= ""; + } else { + $page .= ''; + } + + $page .= <<_EOD; + + + + + + + +_EOD + + return $page; + +} + +1;