Make padding-left on main dev optional

feature/node-rewrite
Sven Slootweg 13 years ago
parent 587072fceb
commit 74bf77196d

@ -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;

@ -20,6 +20,8 @@ try
$sError = "";
$sPageContents = "";
$sMainClass = "shift";
$router = new CPHPRouter();
$router->routes = array(

@ -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
)));
?>

@ -16,7 +16,7 @@
<div><a href="/">Account overview</a> | <a href="/containers/">My VPSes</a></div>
</div>
</div>
<div class="main">
<div class="main <%?main-class>">
<%?main>
</div>
<div class="footer">

Loading…
Cancel
Save