From 5266b821446b14b79a3c5a5c77c57791b985f0a9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 28 Dec 2014 22:22:15 -0500 Subject: Add Gitlab webhook --- app/Controller/Project.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'app/Controller/Project.php') diff --git a/app/Controller/Project.php b/app/Controller/Project.php index 9037a91a..a7e8a39b 100644 --- a/app/Controller/Project.php +++ b/app/Controller/Project.php @@ -52,7 +52,6 @@ class Project extends Base $this->response->html($this->projectLayout('project/show', array( 'project' => $project, 'stats' => $this->project->getStats($project['id']), - 'webhook_token' => $this->config->get('webhook_token'), 'title' => $project['name'], ))); } @@ -152,6 +151,22 @@ class Project extends Base ))); } + /** + * Integrations page + * + * @access public + */ + public function integration() + { + $project = $this->getProjectManagement(); + + $this->response->html($this->projectLayout('project/integrations', array( + 'project' => $project, + 'title' => t('Integrations'), + 'webhook_token' => $this->config->get('webhook_token'), + ))); + } + /** * Display a form to edit a project * -- cgit v1.2.3