You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.8 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Slack Integration for {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Slack</h1>
  8. <p>If your team uses <a href="https://slack.com/">Slack</a>, you can set
  9. up {% site_name %} to post status updates directly to an appropriate
  10. Slack channel.</p>
  11. <h2>Setup Guide</h2>
  12. <div class="row ai-step">
  13. <div class="col-sm-6">
  14. <span class="step-no"></span>
  15. Log into your Slack account and
  16. pick an appropriate Slack channel. From the dropdown next to
  17. channel's name, pick <strong>Add a service integration...</strong>
  18. </div>
  19. <div class="col-sm-6">
  20. <img
  21. class="ai-guide-screenshot"
  22. alt="Screenshot"
  23. src="{% static 'img/integrations/setup_slack_1.png' %}">
  24. </div>
  25. </div>
  26. <div class="row ai-step">
  27. <div class="col-sm-6">
  28. <span class="step-no"></span>
  29. From the list of available integrations, select
  30. <strong>Incoming WebHooks</strong>, and click on
  31. <strong>Add Incoming WebHooks Integration</strong>.
  32. </div>
  33. </div>
  34. <div class="row ai-step">
  35. <div class="col-sm-6">
  36. <span class="step-no"></span>
  37. <p>Copy the displayed <strong>WebHook URL</strong> and paste it down below.</p>
  38. <p>Save the integration, and it's done!</p>
  39. </div>
  40. <div class="col-sm-6">
  41. <img
  42. class="ai-guide-screenshot"
  43. alt="Screenshot"
  44. src="{% static 'img/integrations/setup_slack_2.png' %}">
  45. </div>
  46. </div>
  47. <h2>Integration Settings</h2>
  48. <form method="post" class="form-horizontal">
  49. {% csrf_token %}
  50. <div class="form-group {{ form.value.css_classes }}">
  51. <label for="callback-url" class="col-sm-2 control-label">
  52. Callback URL
  53. </label>
  54. <div class="col-sm-10">
  55. <input
  56. id="callback-url"
  57. type="text"
  58. class="form-control"
  59. name="value"
  60. placeholder="https://"
  61. value="{{ form.value.value|default:"" }}">
  62. {% if form.value.errors %}
  63. <div class="help-block">
  64. {{ form.value.errors|join:"" }}
  65. </div>
  66. {% endif %}
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <div class="col-sm-offset-2 col-sm-10">
  71. <button type="submit" class="btn btn-primary">Save Integration</button>
  72. </div>
  73. </div>
  74. </form>
  75. </div>
  76. </div>
  77. {% endblock %}