Add Slack integration

This commit is contained in:
Frederic Guillot
2015-03-28 21:37:53 -04:00
parent f9891a966f
commit 5536f6c6ce
32 changed files with 296 additions and 47 deletions

View File

@@ -43,6 +43,9 @@ class Config extends Base
if ($redirect === 'board') {
$values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0, 'subtask_forecast' => 0);
}
else if ($redirect === 'integrations') {
$values += array('integration_slack_webhook' => 0);
}
if ($this->config->save($values)) {
$this->config->reload();
@@ -101,6 +104,20 @@ class Config extends Base
)));
}
/**
* Display the integration settings page
*
* @access public
*/
public function integrations()
{
$this->common('integrations');
$this->response->html($this->layout('config/integrations', array(
'title' => t('Settings').' > '.t('Integrations'),
)));
}
/**
* Display the webhook settings page
*