Fixed for languages

This commit is contained in:
Dmitry Khomutov 2017-01-06 22:12:50 +07:00
commit ae90538a38
20 changed files with 83 additions and 91 deletions

View file

@ -13,7 +13,7 @@
<div>
<p>
Your commit <strong><?php print $build->getCommitId(); ?></strong> generated a
<?php print $build->isSuccessful() ? 'successful' : 'failed'; ?> build in project
<?php print $build->isSuccessful() ? 'success' : 'failed'; ?> build in project
<strong><?php print $project->getTitle(); ?></strong>.
</p>
<?php print $content; ?>

View file

@ -42,7 +42,7 @@
case \PHPCensor\Model\Build::STATUS_SUCCESS:
$updated = $build->getFinished();
$label = Lang::get('successful');
$label = Lang::get('success');
$color = 'green';
break;

View file

@ -16,11 +16,6 @@
<link href="<?php print APP_URL; ?>assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="<?php print APP_URL; ?>assets/vendor/ion-icons/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.visible-line-breaks {
white-space: pre-wrap;
}
</style>
<script>
var APP_URL = '<?php print APP_URL; ?>';
var LANGUAGE = <?php print json_encode(Lang::getLanguage()); ?>;