UI fixes
This commit is contained in:
parent
1e17905140
commit
69302adf2b
|
@ -11,7 +11,7 @@
|
|||
|
||||
.sidebar-menu > li.header {
|
||||
color: #4b646f;
|
||||
background: #1a2226;
|
||||
background: black;
|
||||
}
|
||||
|
||||
.sidebar-menu > li > a {
|
||||
|
@ -21,7 +21,7 @@
|
|||
.sidebar-menu > li:hover > a,
|
||||
.sidebar-menu > li.active > a {
|
||||
color: #fff;
|
||||
background: #1e282c;
|
||||
background: #1a2226;
|
||||
border-left-color: #fff;
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,7 @@
|
|||
}
|
||||
|
||||
.skin-black .main-header .navbar .sidebar-toggle:hover {
|
||||
background-color: #1e282c;
|
||||
background-color: #1a2226;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
@ -425,7 +425,7 @@
|
|||
}
|
||||
|
||||
.skin-black .main-header .navbar .dropdown-menu li a:hover {
|
||||
background: #1e282c;
|
||||
background: #1a2226;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -440,7 +440,7 @@
|
|||
}
|
||||
|
||||
.skin-black .main-header li.user-header {
|
||||
background-color: #1e282c;
|
||||
background-color: #1a2226;
|
||||
}
|
||||
|
||||
.skin-black .content-header {
|
||||
|
@ -518,6 +518,45 @@
|
|||
width: 290px;
|
||||
}
|
||||
|
||||
.nav-tabs-custom > .nav-tabs > li.active {
|
||||
border-top-color: #8aa4af;
|
||||
}
|
||||
|
||||
.box {
|
||||
border-top: 3px solid #8aa4af;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: 9.5px;
|
||||
margin: 0 0 10px;
|
||||
font-size: 13px;
|
||||
line-height: 1.42857143;
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
background-color: #fff;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6,
|
||||
.main-header .logo {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
#phpunit-data th div { margin: 0 0.5em; }
|
||||
#phpunit-data .success td { background: none; color: #00a65a; }
|
||||
#phpunit-data .fail td { background: none; color: #f56954; }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
||||
id: 'build-phpunit-errors',
|
||||
css: 'col-lg-6 col-md-12 col-sm-12 col-xs-12',
|
||||
css: 'col-xs-12',
|
||||
title: Lang.get('phpunit'),
|
||||
lastData: null,
|
||||
displayOnUpdate: false,
|
||||
|
@ -28,16 +28,6 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
|||
query();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#phpunit-data .test-toggle', function(ev) {
|
||||
var input = $(ev.target);
|
||||
$('#phpunit-data tbody ' + input.data('target')).toggle(input.prop('checked'));
|
||||
});
|
||||
|
||||
$(document).on('click', '#phpunit-data button.trace', function() {
|
||||
var $btn = $(this);
|
||||
$($btn).replaceWith(self.buildTrace($btn.data('trace')));
|
||||
});
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
@ -45,7 +35,9 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
|||
return $('<div class="table-responsive"><table class="table" id="phpunit-data">' +
|
||||
'<thead>' +
|
||||
'<tr>' +
|
||||
' <th>'+Lang.get('test_message')+'</th>' +
|
||||
'<th>'+Lang.get('status')+'</th>' +
|
||||
'<th>'+Lang.get('test_message')+'</th>' +
|
||||
'<th>'+Lang.get('trace')+'</th>' +
|
||||
'</tr>' +
|
||||
'</thead><tbody></tbody></table></div>');
|
||||
},
|
||||
|
@ -62,7 +54,7 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
|||
var tests = this.lastData[0].meta_value;
|
||||
var thead = $('#phpunit-data thead tr');
|
||||
var tbody = $('#phpunit-data tbody');
|
||||
thead.empty().append('<th>'+Lang.get('test_message')+'</th>');
|
||||
thead.empty().append('<th>'+Lang.get('status')+'</th><th>'+Lang.get('test_message')+'</th><th>'+Lang.get('trace')+'</th>');
|
||||
tbody.empty();
|
||||
|
||||
if (tests.length == 0) {
|
||||
|
@ -73,9 +65,16 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
|||
var counts = { success: 0, fail: 0, error: 0, skipped: 0, todo: 0 }, total = 0;
|
||||
|
||||
for (var i in tests) {
|
||||
var content = $('<td colspan="3"></td>'),
|
||||
message = $('<div class="visible-line-breaks"></div>').appendTo(content),
|
||||
severity = tests[i].severity || (tests[i].pass ? 'success' : 'failed');
|
||||
var severity = tests[i].severity || (tests[i].pass ? 'success' : 'fail'),
|
||||
label = ('success' == severity) ? 'success' : (
|
||||
('error' == severity) ? 'danger' : 'warning'
|
||||
);
|
||||
|
||||
var status = $('<td><span class="label label-' + label + '">' + severity + '</span></td>'),
|
||||
content = $('<td></td>'),
|
||||
trace = $('<td></td>'),
|
||||
message = $('<div class="visible-line-breaks"></div>').appendTo(content),
|
||||
trace_message = $('<div class="visible-line-breaks"></div>').appendTo(trace);
|
||||
|
||||
if (tests[i].message) {
|
||||
message.text(tests[i].message);
|
||||
|
@ -90,34 +89,15 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({
|
|||
}
|
||||
|
||||
if (tests[i].trace && tests[i].trace.length) {
|
||||
var $traceBtn = $('<button class="btn btn-default btn-xs trace" type="button" title="Expand Trace">...</button>');
|
||||
$traceBtn.data('trace', tests[i].trace);
|
||||
content.append('Trace: ');
|
||||
content.append($traceBtn);
|
||||
trace_message.append(tests[i].trace);
|
||||
}
|
||||
|
||||
$('<tr class="'+ severity + '"></tr>').append(content).appendTo(tbody);
|
||||
$('<tr></tr>').append(status).append(content).append(trace).appendTo(tbody);
|
||||
|
||||
counts[severity]++;
|
||||
total++;
|
||||
}
|
||||
|
||||
var checkboxes = $('<th/>');
|
||||
thead.append(checkboxes).append('<th>' + Lang.get('test_total', total) + '</th>');
|
||||
|
||||
for (var key in counts) {
|
||||
var count = counts[key];
|
||||
if(count > 0) {
|
||||
checkboxes.append(
|
||||
'<div style="float:left" class="' + key + '"><input type="checkbox" class="test-toggle" data-target=".' + key + '" ' +
|
||||
(key !== 'success' ? ' checked' : '') + '/> ' +
|
||||
Lang.get('test_'+key, count)+ '</div> '
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
tbody.find('.success').hide();
|
||||
|
||||
$('#build-phpunit-errors').show();
|
||||
},
|
||||
|
||||
|
|
|
@ -3,9 +3,8 @@ var SummaryPlugin = ActiveBuild.UiPlugin.extend({
|
|||
css: 'col-xs-12',
|
||||
title: Lang.get('build-summary'),
|
||||
box: true,
|
||||
statusIcons: [ 'fa-clock-o', 'fa-cogs', 'fa-check', 'fa-remove' ],
|
||||
statusLabels: [ Lang.get('pending'), Lang.get('running'), Lang.get('successful'), Lang.get('failed') ],
|
||||
statusClasses: ['text-blue', 'text-yellow', 'text-green', 'text-red'],
|
||||
statusLabels: [ Lang.get('pending'), Lang.get('running'), Lang.get('success'), Lang.get('failed') ],
|
||||
statusClasses: ['info', 'warning', 'success', 'danger'],
|
||||
|
||||
register: function() {
|
||||
var self = this;
|
||||
|
@ -50,8 +49,7 @@ var SummaryPlugin = ActiveBuild.UiPlugin.extend({
|
|||
'<tr>' +
|
||||
'<td>' + Lang.get('stage_' + stage) + '</td>' +
|
||||
'<td>' + Lang.get(plugin) + '</td>' +
|
||||
'<td><span class="' + this.statusClasses[data.status] + '">' +
|
||||
'<i class="fa ' + this.statusIcons[data.status] + '"></i> ' +
|
||||
'<td><span class="label label-' + this.statusClasses[data.status] + '">' +
|
||||
this.statusLabels[data.status] +
|
||||
'</span></td>' +
|
||||
'<td class="text-right">' + duration + '</td>' +
|
||||
|
|
|
@ -166,7 +166,7 @@ var Build = Class.extend({
|
|||
|
||||
var container = $('<div></div>').addClass('ui-plugin ' + plugin.css).attr('id', plugin.id);
|
||||
var content = $('<div></div>').append(output);
|
||||
content.addClass('box box-default');
|
||||
content.addClass('box');
|
||||
|
||||
if (plugin.title) {
|
||||
content.prepend('<div class="box-header"><h3 class="box-title">'+plugin.title+'</h3></div>');
|
||||
|
|
|
@ -181,21 +181,21 @@ PHP Censor',
|
|||
|
||||
'build' => 'Build',
|
||||
'lines' => 'Lines',
|
||||
'comment_lines' => 'Comment Lines',
|
||||
'noncomment_lines' => 'Non-Comment Lines',
|
||||
'comment_lines' => 'Comment lines',
|
||||
'noncomment_lines' => 'Non-Comment lines',
|
||||
'logical_lines' => 'Logical Lines',
|
||||
'lines_of_code' => 'Lines of Code',
|
||||
'build_log' => 'Build Log',
|
||||
'quality_trend' => 'Quality Trend',
|
||||
'codeception_errors' => 'Codeception Errors',
|
||||
'phpmd_warnings' => 'PHPMD Warnings',
|
||||
'phpcs_warnings' => 'PHPCS Warnings',
|
||||
'phpcs_errors' => 'PHPCS Errors',
|
||||
'phplint_errors' => 'Lint Errors',
|
||||
'phpunit_errors' => 'PHPUnit Errors',
|
||||
'lines_of_code' => 'Lines of code',
|
||||
'build_log' => 'Build log',
|
||||
'quality_trend' => 'Quality trend',
|
||||
'codeception_errors' => 'Codeception errors',
|
||||
'phpmd_warnings' => 'PHPMD warnings',
|
||||
'phpcs_warnings' => 'PHPCS warnings',
|
||||
'phpcs_errors' => 'PHPCS errors',
|
||||
'phplint_errors' => 'Lint errors',
|
||||
'phpunit_errors' => 'PHPUnit errors',
|
||||
'phpunit_fail_init' => 'Neither a configuration file nor a test directory found.',
|
||||
'phpcpd_warnings' => 'PHP Copy/Paste Detector Warnings',
|
||||
'phpdoccheck_warnings' => 'Missing Docblocks',
|
||||
'phpcpd_warnings' => 'PHP Copy/Paste Detector warnings',
|
||||
'phpdoccheck_warnings' => 'Missing docblocks',
|
||||
'issues' => 'Issues',
|
||||
|
||||
'phpcpd' => 'PHP Copy/Paste Detector',
|
||||
|
@ -462,7 +462,7 @@ PHP Censor',
|
|||
'php_cpd' => 'PHP Copy/Paste Detector',
|
||||
'php_docblock_checker' => 'PHP Docblock Checker',
|
||||
'composer' => 'Composer',
|
||||
'php_loc' => 'PHPLOC',
|
||||
'php_loc' => 'PHP LOC',
|
||||
'php_parallel_lint' => 'PHP Parallel Lint',
|
||||
'email' => 'Email',
|
||||
'atoum' => 'Atoum',
|
||||
|
|
|
@ -166,19 +166,19 @@ PHPCI',
|
|||
|
||||
'build' => 'Build',
|
||||
'lines' => 'Lines',
|
||||
'comment_lines' => 'Comment Lines',
|
||||
'noncomment_lines' => 'Non-Comment Lines',
|
||||
'logical_lines' => 'Logical Lines',
|
||||
'lines_of_code' => 'Lines of Code',
|
||||
'comment_lines' => 'Comment lines',
|
||||
'noncomment_lines' => 'Non-Comment lines',
|
||||
'logical_lines' => 'Logical lines',
|
||||
'lines_of_code' => 'Lines of code',
|
||||
'build_log' => 'Log de compilação',
|
||||
'quality_trend' => 'Quality Trend',
|
||||
'codeception_errors' => 'Codeception Errors',
|
||||
'phpmd_warnings' => 'PHPMD Warnings',
|
||||
'phpcs_warnings' => 'PHPCS Warnings',
|
||||
'phpcs_errors' => 'PHPCS Errors',
|
||||
'phplint_errors' => 'Lint Errors',
|
||||
'phpunit_errors' => 'PHPUnit Errors',
|
||||
'phpdoccheck_warnings' => 'Missing Docblocks',
|
||||
'quality_trend' => 'Quality trend',
|
||||
'codeception_errors' => 'Codeception errors',
|
||||
'phpmd_warnings' => 'PHPMD warnings',
|
||||
'phpcs_warnings' => 'PHPCS warnings',
|
||||
'phpcs_errors' => 'PHPCS errors',
|
||||
'phplint_errors' => 'Lint errors',
|
||||
'phpunit_errors' => 'PHPUnit errors',
|
||||
'phpdoccheck_warnings' => 'Missing docblocks',
|
||||
'issues' => 'Issues',
|
||||
|
||||
'codeception' => 'Codeception',
|
||||
|
|
|
@ -446,7 +446,7 @@ PHP Censor',
|
|||
'php_cpd' => 'PHP Copy/Paste Detector',
|
||||
'php_docblock_checker' => 'PHP Docblock Checker',
|
||||
'composer' => 'Composer',
|
||||
'php_loc' => 'PHPLOC',
|
||||
'php_loc' => 'PHP LOC',
|
||||
'php_parallel_lint' => 'PHP Parallel Lint',
|
||||
'email' => 'Email',
|
||||
'atoum' => 'Atoum',
|
||||
|
|
|
@ -164,19 +164,19 @@ PHPCI',
|
|||
|
||||
'build' => 'Build',
|
||||
'lines' => 'Lines',
|
||||
'comment_lines' => 'Comment Lines',
|
||||
'noncomment_lines' => 'Non-Comment Lines',
|
||||
'logical_lines' => 'Logical Lines',
|
||||
'lines_of_code' => 'Lines of Code',
|
||||
'build_log' => 'Build Log',
|
||||
'quality_trend' => 'Quality Trend',
|
||||
'codeception_errors' => 'Codeception Errors',
|
||||
'phpmd_warnings' => 'PHPMD Warnings',
|
||||
'phpcs_warnings' => 'PHPCS Warnings',
|
||||
'phpcs_errors' => 'PHPCS Errors',
|
||||
'phplint_errors' => 'Lint Errors',
|
||||
'phpunit_errors' => 'PHPUnit Errors',
|
||||
'phpdoccheck_warnings' => 'Missing Docblocks',
|
||||
'comment_lines' => 'Comment lines',
|
||||
'noncomment_lines' => 'Non-Comment lines',
|
||||
'logical_lines' => 'Logical lines',
|
||||
'lines_of_code' => 'Lines of code',
|
||||
'build_log' => 'Build log',
|
||||
'quality_trend' => 'Quality trend',
|
||||
'codeception_errors' => 'Codeception errors',
|
||||
'phpmd_warnings' => 'PHPMD warnings',
|
||||
'phpcs_warnings' => 'PHPCS warnings',
|
||||
'phpcs_errors' => 'PHPCS errors',
|
||||
'phplint_errors' => 'Lint errors',
|
||||
'phpunit_errors' => 'PHPUnit errors',
|
||||
'phpdoccheck_warnings' => 'Missing docblocks',
|
||||
'issues' => 'Issues',
|
||||
|
||||
'codeception' => 'Codeception',
|
||||
|
|
|
@ -10,7 +10,6 @@ use PHPCensor\Model\Base\BuildErrorBase;
|
|||
|
||||
/**
|
||||
* BuildError Model
|
||||
* @uses PHPCensor\Model\Base\BuildErrorBase
|
||||
*/
|
||||
class BuildError extends BuildErrorBase
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ use PHPCensor\Helper\Lang;
|
|||
|
||||
$linkTemplate = $build->getFileLinkTemplate();
|
||||
|
||||
/** @var \PHPCI\Model\BuildError[] $errors */
|
||||
/** @var \PHPCensor\Model\BuildError[] $errors */
|
||||
foreach ($errors as $error):
|
||||
|
||||
$link = str_replace('{FILE}', $error->getFile(), $linkTemplate);
|
||||
|
@ -11,7 +11,7 @@ foreach ($errors as $error):
|
|||
$link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
|
||||
?>
|
||||
|
||||
<tr class="bg-<?php print $error->getSeverityClass(); ?>">
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-<?php print $error->getSeverityClass(); ?>">
|
||||
<?php print Lang::get($error->getSeverityString()); ?>
|
||||
|
@ -30,7 +30,7 @@ foreach ($errors as $error):
|
|||
?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="visible-line-breaks"><?php print $error->getMessage(); ?></td>
|
||||
<td class="visible-line-breaks"><?= trim($error->getMessage()); ?></td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
|
|
@ -134,11 +134,11 @@
|
|||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="log">
|
||||
<pre style="height: 400px; overflow-y: auto;"><?php print $data['log']; ?></pre>
|
||||
<pre style="overflow-y: visible;"><?php print $data['log']; ?></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="errors">
|
||||
<table class="errors-table table table-hover dataTable">
|
||||
<table class="errors-table table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php Lang::out('severity'); ?></th>
|
||||
|
@ -149,7 +149,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php print $data['error_html']; ?>
|
||||
<?php print $data['error_html']; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
|
||||
<!-- Recent builds: -->
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header"><h3 class="box-title">Builds</h3></div>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
|
||||
<?php if(empty($builds) || !count($builds)): ?>
|
||||
<tr class="">
|
||||
<td colspan="6"><?php Lang::out('no_builds_yet'); ?></td>
|
||||
</tr>
|
||||
<tr class="">
|
||||
<td colspan="6"><?php Lang::out('no_builds_yet'); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach($builds as $build): ?>
|
||||
|
@ -11,36 +11,36 @@
|
|||
<?php
|
||||
switch($build->getStatus())
|
||||
{
|
||||
case 0:
|
||||
$cls = 'active';
|
||||
$subcls = 'info';
|
||||
$status = Lang::get('pending');
|
||||
|
||||
break;
|
||||
|
||||
case 1:
|
||||
$cls = 'warning';
|
||||
$subcls = 'warning';
|
||||
$status = Lang::get('running');
|
||||
break;
|
||||
|
||||
case 2:
|
||||
$cls = 'success';
|
||||
$subcls = 'success';
|
||||
$status = Lang::get('success');
|
||||
break;
|
||||
|
||||
case 3:
|
||||
$cls = 'danger';
|
||||
$subcls = 'danger';
|
||||
$status = Lang::get('failed');
|
||||
break;
|
||||
case 0:
|
||||
$cls = 'active';
|
||||
$subcls = 'info';
|
||||
$status = Lang::get('pending');
|
||||
|
||||
break;
|
||||
|
||||
case 1:
|
||||
$cls = 'warning';
|
||||
$subcls = 'warning';
|
||||
$status = Lang::get('running');
|
||||
break;
|
||||
|
||||
case 2:
|
||||
$cls = 'success';
|
||||
$subcls = 'success';
|
||||
$status = Lang::get('success');
|
||||
break;
|
||||
|
||||
case 3:
|
||||
$cls = 'danger';
|
||||
$subcls = 'danger';
|
||||
$status = Lang::get('failed');
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<tr class="<?php print $cls; ?>">
|
||||
<td><a href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>">#<?php print str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
|
||||
<tr>
|
||||
<td><a href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>">#<?php print str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
|
||||
<td><?php print $build->getCreated()->format('Y-m-d H:i:s'); ?></td>
|
||||
<td><a href="<?php echo APP_URL ?>project/view/<?php print $build->getProjectId(); ?>">
|
||||
<td><a href="<?php echo APP_URL ?>project/view/<?php print $build->getProjectId(); ?>">
|
||||
<i class="fa fa-<?php print $build->getProject()->getIcon(); ?>"></i>
|
||||
|
||||
<?php
|
||||
|
@ -66,22 +66,22 @@ switch($build->getStatus())
|
|||
?>
|
||||
</td>
|
||||
|
||||
<td><a href="<?php print $build->getBranchLink(); ?>" target="_blank"><?php print $build->getBranch(); ?></a></td>
|
||||
<td>
|
||||
<span class='label label-<?php echo $subcls ?>'><?php echo $status ?></span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-default btn-sm" href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>"><?php Lang::out('view'); ?></a>
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="<?php echo APP_URL ?>build/delete/<?php print $build->getId(); ?>" class="app-delete-build"><?php Lang::out('delete_build'); ?></a></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td><a href="<?php print $build->getBranchLink(); ?>" target="_blank"><?php print $build->getBranch(); ?></a></td>
|
||||
<td>
|
||||
<span class='label label-<?php echo $subcls ?>'><?php echo $status ?></span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-default btn-sm" href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>"><?php Lang::out('view'); ?></a>
|
||||
<?php if($this->User()->getIsAdmin()): ?>
|
||||
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="<?php echo APP_URL ?>build/delete/<?php print $build->getId(); ?>" class="app-delete-build"><?php Lang::out('delete_build'); ?></a></li>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('group_add_edit'); ?></h3>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('project_groups'); ?></h3>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<div class="col-sm-5">
|
||||
<?php foreach ($groups as $group): ?>
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php print $group['title']; ?></h3>
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-sm-7 pull-left">
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('latest_builds'); ?></h3>
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('enabled_plugins'); ?></h3>
|
||||
</div>
|
||||
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('installed_packages'); ?></h3>
|
||||
</div>
|
||||
|
|
|
@ -42,34 +42,34 @@
|
|||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-9 col-md-8 col-sm-8">
|
||||
<div class="box box-primary">
|
||||
<div class="col-lg-9 col-md-8 col-sm-8">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('builds'); ?> (<?php print $total; ?>)</h3>
|
||||
</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php Lang::out('id'); ?></th>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php Lang::out('id'); ?></th>
|
||||
<th><?php Lang::out('date'); ?></th>
|
||||
<th><?php Lang::out('project'); ?></th>
|
||||
<th class="hidden-md hidden-sm hidden-xs"><?php Lang::out('commit'); ?></th>
|
||||
<th><?php Lang::out('branch'); ?></th>
|
||||
<th><?php Lang::out('status'); ?></th>
|
||||
<th style="width: 100px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-builds">
|
||||
<?php print $builds; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<th><?php Lang::out('project'); ?></th>
|
||||
<th class="hidden-md hidden-sm hidden-xs"><?php Lang::out('commit'); ?></th>
|
||||
<th><?php Lang::out('branch'); ?></th>
|
||||
<th><?php Lang::out('status'); ?></th>
|
||||
<th style="width: 100px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-builds">
|
||||
<?php print $builds; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-md-4 col-sm-4">
|
||||
|
||||
<?php if (in_array($project->getType(), ['github', 'gitlab', 'bitbucket'])): ?>
|
||||
<div class="box box-info">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title"><?php Lang::out('webhooks'); ?></h4>
|
||||
</div>
|
||||
|
@ -100,7 +100,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ($project->getSshPublicKey()): ?>
|
||||
<div class="box box-info">
|
||||
<div class="box">
|
||||
<div class="box-header"><h3 class="box-title"><a data-toggle="collapse" data-parent="#accordion" href="#publicCollapse"><?php Lang::out('public_key'); ?></a></h3></div>
|
||||
<div class="box-body" style="word-break: break-all;"><?php print $project->getSshPublicKey(); ?></div>
|
||||
</div>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-8">
|
||||
<div class="box box-primary">
|
||||
<div class="col-sm-8">
|
||||
<div class="box ">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('project_details'); ?></h3>
|
||||
</div>
|
||||
|
@ -11,11 +11,11 @@
|
|||
<?php print $form; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(!is_null($key)): ?>
|
||||
<div class="col-sm-4">
|
||||
<div class="box box-info">
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<p><?php Lang::out('public_key_help'); ?></p>
|
||||
|
||||
|
|
|
@ -30,20 +30,20 @@
|
|||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-body clearfix">
|
||||
<?php print $basicSettings; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header"><h3 class="box-title"><?php Lang::out('build_settings'); ?></h3></div>
|
||||
<div class="box-body clearfix">
|
||||
<?php print $buildSettings; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header"><h3 class="box-title"><?php Lang::out('github_application'); ?></h3></div>
|
||||
<div class="box-body clearfix">
|
||||
|
||||
|
@ -81,7 +81,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<div class="box box-info">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('github_where_to_find'); ?></h3>
|
||||
</div>
|
||||
|
@ -99,7 +99,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('email_settings'); ?></h3>
|
||||
</div>
|
||||
|
@ -116,7 +116,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Authentication Settings</h3>
|
||||
</div>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -56,6 +56,5 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p class="alert alert-success"><?php Lang::out('your_details_updated'); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?php Lang::out('update_your_details'); ?></h3>
|
||||
</div>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box box-primary">
|
||||
<div class="col-sm-12">
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<?php print $form; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue