diff --git a/src/PHPCensor/Languages/lang.en.php b/src/PHPCensor/Languages/lang.en.php index 2f4e99b6..37593991 100644 --- a/src/PHPCensor/Languages/lang.en.php +++ b/src/PHPCensor/Languages/lang.en.php @@ -497,4 +497,8 @@ PHP Censor', 'confirm_cancel' => 'Cancel', 'confirm_success' => 'Item successfully deleted.', 'confirm_failed' => 'Deletion failed! Server says: ', + + 'public_status_title' => 'Public status', + 'public_status_image' => 'Status image', + 'public_status_page' => 'Public status page', ]; diff --git a/src/PHPCensor/Languages/lang.ru.php b/src/PHPCensor/Languages/lang.ru.php index f073555f..e124b3bd 100644 --- a/src/PHPCensor/Languages/lang.ru.php +++ b/src/PHPCensor/Languages/lang.ru.php @@ -481,4 +481,8 @@ PHP Censor', 'confirm_cancel' => 'Отмена', 'confirm_success' => 'Элемент успешно удален.', 'confirm_failed' => 'Удаление провалилось! Ответ сервера: ', + + 'public_status_title' => 'Публичный статус', + 'public_status_image' => 'Иконка статуса', + 'public_status_page' => 'Страница публичного статуса', ]; diff --git a/src/PHPCensor/Model/Base/ProjectBase.php b/src/PHPCensor/Model/Base/ProjectBase.php index 25c2c60e..f123272e 100644 --- a/src/PHPCensor/Model/Base/ProjectBase.php +++ b/src/PHPCensor/Model/Base/ProjectBase.php @@ -316,7 +316,7 @@ class ProjectBase extends Model */ public function getAllowPublicStatus() { - $rtn = $this->data['allow_public_status']; + $rtn = $this->data['allow_public_status']; return $rtn; } diff --git a/src/PHPCensor/View/Project/view.phtml b/src/PHPCensor/View/Project/view.phtml index 54d7f697..2c2f3332 100644 --- a/src/PHPCensor/View/Project/view.phtml +++ b/src/PHPCensor/View/Project/view.phtml @@ -68,6 +68,28 @@
+ getAllowPublicStatus()): ?> +
+
+

+
+ +
+ + + + + +

+ :
getId() . '?branch=master&label=PHPCensor&style=flat-square'; ?> + +

+ :
getId() . '?branch=master'; ?> +
+
+
+ + getType(), ['github', 'gitlab', 'bitbucket'])): ?>
@@ -79,17 +101,17 @@ switch($project->getType()) { case 'github': - $url = APP_URL . 'webhook/github/' . $project->getId(); + $url = APP_URL . 'webhook/github/' . $project->getId(); Lang::out('webhooks_help_github', $project->getReference()); break; case 'gitlab': - $url = APP_URL. 'webhook/gitlab/' . $project->getId(); + $url = APP_URL. 'webhook/gitlab/' . $project->getId(); Lang::out('webhooks_help_gitlab'); break; case 'bitbucket': - $url = APP_URL . 'webhook/bitbucket/' . $project->getId(); + $url = APP_URL . 'webhook/bitbucket/' . $project->getId(); Lang::out('webhooks_help_bitbucket', $project->getReference()); break; } @@ -101,7 +123,7 @@ getSshPublicKey()): ?>
-

+

getSshPublicKey(); ?>