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; background-color: #F1F1F1;
padding: 9px 13px; padding: 9px 13px;
border: 2px solid #817F9D; border: 2px solid #817F9D;
padding-left: 225px;
min-height: 400px; min-height: 400px;
} }
.main.shift
{
padding-left: 225px;
}
.sidebar .sidebar
{ {
position: absolute; position: absolute;

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

@ -15,6 +15,7 @@ $_CVM = true;
require("includes/include.base.php"); require("includes/include.base.php");
$sMainContents = ""; $sMainContents = "";
$sMainClass = "";
$sPageTitle = ""; $sPageTitle = "";
// Initialize some variables to ensure they are available through the application. // Initialize some variables to ensure they are available through the application.
@ -29,6 +30,7 @@ $mainrouter = new CPHPRouter();
$mainrouter->routes = array( $mainrouter->routes = array(
0 => array( 0 => array(
'^/?$' => "module.home.php", '^/?$' => "module.home.php",
'^/containers/?$' => "module.list.php",
'^/login/?$' => "module.login.php", '^/login/?$' => "module.login.php",
'^/logout/?$' => "module.logout.php", '^/logout/?$' => "module.logout.php",
'^/([0-9]+)(/.*)?$' => "module.vps.php" '^/([0-9]+)(/.*)?$' => "module.vps.php"
@ -39,7 +41,8 @@ $mainrouter->RouteRequest();
echo(Templater::InlineRender("main", $locale->strings, array( echo(Templater::InlineRender("main", $locale->strings, array(
'title' => $sPageTitle, '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><a href="/">Account overview</a> | <a href="/containers/">My VPSes</a></div>
</div> </div>
</div> </div>
<div class="main"> <div class="main <%?main-class>">
<%?main> <%?main>
</div> </div>
<div class="footer"> <div class="footer">

Loading…
Cancel
Save