2013-05-10 13:28:43 +02:00
< div class = "row" >
2014-04-30 15:13:07 +02:00
2014-12-02 17:26:55 +01:00
< div class = "col-sm-8" >
< div class = "box box-primary" >
< div class = "box-header" >
< h3 class = "box-title" > Project Details< / h3 >
2014-04-30 15:13:07 +02:00
< / div >
2014-12-02 17:26:55 +01:00
< div class = "box-body" >
2014-04-30 15:13:07 +02:00
<?php print $form ; ?>
< / div >
2013-10-08 08:21:46 +02:00
< / div >
2013-05-10 13:28:43 +02:00
< / div >
2014-12-02 17:26:55 +01:00
<?php if ( ! is_null ( $key )) : ?>
< div class = "col-sm-4" >
< div class = "box box-info" >
< div class = "box-body" >
< p > To make it easier to get started, we've generated a public / private key pair for you to use for this project. To use it, just add the following public key to the "deploy keys" section of your repository settings on Github / Bitbucket.< / p >
< textarea style = "width: 90%; height: 150px;" > <?php print $key ?> </ textarea >
< / div >
< / div >
< / div >
<?php endif ; ?>
2013-05-14 10:00:56 +02:00
< / div >
< script >
2013-05-17 20:17:51 +02:00
window.return_url = <?php print json_encode (( empty ( $_SERVER [ 'HTTPS' ]) ? 'http' : 'https' ) . '://' . $_SERVER [ 'HTTP_HOST' ] . $_SERVER [ 'REQUEST_URI' ]); ?> ;
2013-05-14 17:37:54 +02:00
<?php
2013-07-30 03:55:29 +02:00
$gh = \b8\Config::getInstance()->get('phpci.github', null);
2013-05-14 17:37:54 +02:00
2013-05-16 02:59:27 +02:00
if($gh) {
2013-05-14 17:37:54 +02:00
print 'window.github_app_id = ' . json_encode($gh['id']) . ';' . PHP_EOL;
}
2013-05-16 02:59:27 +02:00
if(!empty($token)) {
2013-05-14 17:37:54 +02:00
print 'window.github_token = ' . json_encode($token) . ';' . PHP_EOL;
}
?>
2013-05-16 02:59:27 +02:00
$(document).ready(setupProjectForm);
2014-01-28 22:27:39 +01:00
< / script >