Affichage OK

This commit is contained in:
Michel Roux 2013-10-02 11:24:17 +02:00
parent 3b2c71d830
commit 0a6ac31204

View File

@ -1,4 +1,7 @@
<!doctype html> <?php
require_once 'config/config.php';
global $servers;
?><!doctype html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
@ -8,41 +11,43 @@
<link rel="stylesheet" href="css/styles.css"> <link rel="stylesheet" href="css/styles.css">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script>
<title>Git Center</title> <script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
</script>
<title>Git Control Center</title>
</head> </head>
<body data-spy="scroll"> <body data-spy="scroll">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="span3"> <div class="span3">
<ul class="nav nav-list well"> <ul class="nav nav-list well">
<li class="nav-header">France</li> <?php foreach ($servers as $pays => $ssh): ?>
<li><a href="#magento-prod">Magento Prod</a></li> <li class="nav-header"><?php echo $pays; ?></li>
<li><a href="#magento-preprod">Magento Preprod</a></li> <?php foreach ($ssh as $id => $param): ?>
</ul> <li><a href="#<?php echo $id; ?>"><?php echo $param['title']; ?></a></li>
</div> <?php endforeach; ?>
<div class="span9"> <?php endforeach; ?>
<section id="magento-prod"> </ul>
<h3>Magento Prod <span class="label label-success">OK</span></h3> </div>
<div class="btn-group"> <div class="span9">
<button class="btn"><i class="icon-refresh"></i> Status</button> <?php foreach ($servers as $pays => $ssh): ?>
<button class="btn"><i class="icon-arrow-up"></i> Push</button> <h1><?php echo $pays; ?></h1>
<button class="btn"><i class="icon-arrow-down"></i> Pull</button> <?php foreach ($ssh as $id => $param): ?>
</div> <section id="<?php echo $id; ?>">
<pre><b>coucou</b></pre> <h3><?php echo $param['title']; ?> <span class="label"></span></h3>
</section> <div class="btn-group">
<section id="magento-preprod"> <button class="btn" onclick="status('<?php echo $id; ?>');"><i class="icon-refresh"></i> Status</button>
<h3>Magento Preprod <span class="label label-important">En attente</span></h3> <button class="btn" onclick="push('<?php echo $id; ?>');"><i class="icon-arrow-up"></i> Push</button>
<div class="btn-group"> <button class="btn" onclick="pull('<?php echo $id; ?>');"><i class="icon-arrow-down"></i> Pull</button>
<button class="btn"><i class="icon-refresh"></i> Status</button> </div>
<button class="btn"><i class="icon-arrow-up"></i> Push</button> <pre></pre>
<button class="btn"><i class="icon-arrow-down"></i> Pull</button> </section>
</div> <?php endforeach; ?>
<pre><b>coucou</b></pre> <?php endforeach; ?>
</section> </div>
</div> </div>
</div> </div>
</div>
</body> </body>
</html> </html>