summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorAsh Bike <hello.ashbike@gmail.com>2015-07-05 02:16:18 +0530
committerAsh Bike <hello.ashbike@gmail.com>2015-07-05 02:16:18 +0530
commitbc6b443c3db4f260bdc1460009c8110b54b3c257 (patch)
treef9028a240fe27325b6d8da84824258fd19828aae /app/Template
parent33669c1bac974f87fa8a3809cb541d75e26fd3ef (diff)
Slack channel can be overridden to post to another channel/private group or send direct messages. Need to make these database changes:
INSERT INTO settings VALUES ('integration_slack_webhook_channel', ''); ALTER TABLE project_integrations ADD COLUMN slack_webhook_channel text;
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/config/integrations.php2
-rw-r--r--app/Template/project/integrations.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/Template/config/integrations.php b/app/Template/config/integrations.php
index a1299806..9c80b499 100644
--- a/app/Template/config/integrations.php
+++ b/app/Template/config/integrations.php
@@ -77,6 +77,8 @@
<?= $this->form->label(t('Webhook URL'), 'integration_slack_webhook_url') ?>
<?= $this->form->text('integration_slack_webhook_url', $values, $errors) ?>
+ <?= $this->form->label(t('Channel/Group/User (Optional)'), 'integration_slack_webhook_channel') ?>
+ <?= $this->form->text('integration_slack_webhook_channel', $values, $errors) ?>
<p class="form-help"><a href="http://kanboard.net/documentation/slack" target="_blank"><?= t('Help on Slack integration') ?></a></p>
</div>
diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php
index 698e438c..445e7bfb 100644
--- a/app/Template/project/integrations.php
+++ b/app/Template/project/integrations.php
@@ -85,6 +85,8 @@
<?= $this->form->label(t('Webhook URL'), 'slack_webhook_url') ?>
<?= $this->form->text('slack_webhook_url', $values, $errors) ?>
+ <?= $this->form->label(t('Channel/Group/User (Optional)'), 'slack_webhook_channel') ?>
+ <?= $this->form->text('slack_webhook_channel', $values, $errors) ?>
<p class="form-help"><a href="http://kanboard.net/documentation/slack" target="_blank"><?= t('Help on Slack integration') ?></a></p>