2013-10-02 09:24:17 +00:00
|
|
|
<?php
|
2013-10-17 07:51:35 +00:00
|
|
|
ini_set('display_errors', true);
|
2013-10-16 19:16:17 +00:00
|
|
|
require_once 'config.php';
|
2013-10-17 07:57:29 +00:00
|
|
|
require_once 'utils.php';
|
2013-10-02 09:24:17 +00:00
|
|
|
global $servers;
|
|
|
|
?><!doctype html>
|
2013-10-17 10:38:21 +00:00
|
|
|
<html lang="en">
|
2013-10-01 13:56:29 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
|
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
2013-10-02 09:24:17 +00:00
|
|
|
<title>Git Control Center</title>
|
2013-10-01 13:56:29 +00:00
|
|
|
</head>
|
2013-10-17 12:14:56 +00:00
|
|
|
<body data-spy="scroll">
|
2013-10-02 09:24:17 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2013-10-17 12:14:56 +00:00
|
|
|
<div class="span2">
|
|
|
|
<ul class="nav nav-list well affix">
|
2013-10-02 09:24:17 +00:00
|
|
|
<?php foreach ($servers as $pays => $ssh): ?>
|
|
|
|
<li class="nav-header"><?php echo $pays; ?></li>
|
|
|
|
<?php foreach ($ssh as $id => $param): ?>
|
|
|
|
<li><a href="#<?php echo $id; ?>"><?php echo $param['title']; ?></a></li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-10-31 23:46:53 +00:00
|
|
|
<div class="span9">
|
2013-10-02 09:24:17 +00:00
|
|
|
<?php foreach ($servers as $pays => $ssh): ?>
|
|
|
|
<h1><?php echo $pays; ?></h1>
|
|
|
|
<?php foreach ($ssh as $id => $param): ?>
|
|
|
|
<section id="<?php echo $id; ?>">
|
2013-10-17 12:14:56 +00:00
|
|
|
<h3><?php echo $param['title']; ?></h3>
|
|
|
|
<div class="pull-right"><span class="label"></span></div>
|
2013-10-17 10:53:24 +00:00
|
|
|
<div class="btn-group toolbar-top">
|
2013-10-02 14:46:02 +00:00
|
|
|
<button class="btn" onclick="callRequest('status', '<?php echo $id; ?>');">
|
|
|
|
<i class="icon-refresh"></i> Status
|
|
|
|
</button>
|
|
|
|
<button class="btn" onclick="callRequest('pull', '<?php echo $id; ?>');">
|
|
|
|
<i class="icon-arrow-down"></i> Pull
|
|
|
|
</button>
|
2013-10-02 09:24:17 +00:00
|
|
|
</div>
|
|
|
|
<pre></pre>
|
2014-02-03 16:02:15 +00:00
|
|
|
<div class="toolbar-bottom input-append">
|
2013-10-17 12:14:56 +00:00
|
|
|
<input class="input-block-level" type="text" name="message" placeholder="Commit message">
|
|
|
|
<button class="btn" onclick="callRequest('push', '<?php echo $id; ?>', document.querySelector('#<?php echo $id; ?> input[name=message]').value);">
|
|
|
|
<i class="icon-arrow-up"></i> Push
|
|
|
|
</button>
|
|
|
|
</div>
|
2013-10-02 09:24:17 +00:00
|
|
|
</section>
|
|
|
|
<?php endforeach; ?>
|
2013-10-17 12:14:56 +00:00
|
|
|
<hr>
|
2013-10-02 09:24:17 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2013-10-02 08:47:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-17 12:14:56 +00:00
|
|
|
|
|
|
|
<footer>
|
|
|
|
<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/app.js"></script>
|
|
|
|
</footer>
|
2013-10-01 13:56:29 +00:00
|
|
|
</body>
|
|
|
|
</html>
|