summaryrefslogtreecommitdiff
path: root/app/Template/project_show.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-25 18:13:13 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-25 18:13:13 -0400
commitc4e6d658e4099bd8152c77a76f486809693205f5 (patch)
tree3f40b34076fe62843023877e463c8538f2339053 /app/Template/project_show.php
parent7af67934cf67d40e1471b519ecdf06343203c6f6 (diff)
Finish github webhooks integration
Diffstat (limited to 'app/Template/project_show.php')
-rw-r--r--app/Template/project_show.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Template/project_show.php b/app/Template/project_show.php
index facdc60a..907d1b70 100644
--- a/app/Template/project_show.php
+++ b/app/Template/project_show.php
@@ -53,3 +53,14 @@
</tr>
<?php endforeach ?>
</table>
+
+<?php if (Helper\is_admin()): ?>
+<div class="page-header">
+ <h2><?= t('Integration') ?></h2>
+</div>
+
+<h3><i class="fa fa-github fa-fw"></i><?= t('Github webhook') ?></h3>
+<input type="text" readonly="readonly" value="<?= Helper\get_current_base_url().Helper\u('webhook', 'github', array('token' => $webhook_token, 'project_id' => $project['id'])) ?>"/><br/>
+<p class="form-help"><a href="http://kanboard.net/documentation/github-webhooks" target="_blank"><?= t('Help on Github webhook') ?></a></p>
+
+<?php endif ?>