diff --git a/frontend/css/cvm.css b/frontend/css/cvm.css index 0842726..810061e 100644 --- a/frontend/css/cvm.css +++ b/frontend/css/cvm.css @@ -82,10 +82,14 @@ table.vpsinfo td background-color: #F1F1F1; padding: 9px 13px; border: 2px solid #817F9D; - padding-left: 225px; min-height: 400px; } +.main.shift +{ + padding-left: 225px; +} + .sidebar { position: absolute; diff --git a/frontend/module.vps.php b/frontend/module.vps.php index e0737f1..aba388f 100644 --- a/frontend/module.vps.php +++ b/frontend/module.vps.php @@ -20,6 +20,8 @@ try $sError = ""; $sPageContents = ""; + $sMainClass = "shift"; + $router = new CPHPRouter(); $router->routes = array( diff --git a/frontend/rewrite.php b/frontend/rewrite.php index ef84085..33c54d9 100644 --- a/frontend/rewrite.php +++ b/frontend/rewrite.php @@ -15,6 +15,7 @@ $_CVM = true; require("includes/include.base.php"); $sMainContents = ""; +$sMainClass = ""; $sPageTitle = ""; // Initialize some variables to ensure they are available through the application. @@ -29,6 +30,7 @@ $mainrouter = new CPHPRouter(); $mainrouter->routes = array( 0 => array( '^/?$' => "module.home.php", + '^/containers/?$' => "module.list.php", '^/login/?$' => "module.login.php", '^/logout/?$' => "module.logout.php", '^/([0-9]+)(/.*)?$' => "module.vps.php" @@ -39,7 +41,8 @@ $mainrouter->RouteRequest(); echo(Templater::InlineRender("main", $locale->strings, array( 'title' => $sPageTitle, - 'main' => $sMainContents + 'main' => $sMainContents, + 'main-class' => $sMainClass ))); ?> diff --git a/frontend/templates/main.tpl b/frontend/templates/main.tpl index 36d1e5f..ef19a35 100644 --- a/frontend/templates/main.tpl +++ b/frontend/templates/main.tpl @@ -16,7 +16,7 @@
-