summaryrefslogtreecommitdiff
path: root/app/Controller/Project.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 22:22:15 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 22:22:15 -0500
commit5266b821446b14b79a3c5a5c77c57791b985f0a9 (patch)
treedf0719492193e0ba842430edbbab8cd02775fbc5 /app/Controller/Project.php
parentd6530bd55fdd863f0cf153bc2854fb4e34076316 (diff)
Add Gitlab webhook
Diffstat (limited to 'app/Controller/Project.php')
-rw-r--r--app/Controller/Project.php17
1 files changed, 16 insertions, 1 deletions
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'],
)));
}
@@ -153,6 +152,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
*
* @access public