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.

80 lines
2.5 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add Slack - healthchecks.io{% 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="http://slack.com/">Slack</a>, you can set
  9. up healthchecks.io 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">1</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. src="{% static 'img/integrations/setup_slack_1.png' %}">
  23. </div>
  24. </div>
  25. <div class="row ai-step">
  26. <div class="col-sm-6">
  27. <span class="step-no">2</span>
  28. From the list of available integrations, select
  29. <strong>Incoming WebHooks</strong>, and click on
  30. <strong>Add Incoming WebHooks Integration</strong>.
  31. </div>
  32. </div>
  33. <div class="row ai-step">
  34. <div class="col-sm-6">
  35. <span class="step-no">3</span>
  36. <p>Copy the displayed <strong>WebHook URL</strong> and paste it down below.</p>
  37. <p>Save the integration, and it's done!</p>
  38. </div>
  39. <div class="col-sm-6">
  40. <img
  41. class="ai-guide-screenshot"
  42. src="{% static 'img/integrations/setup_slack_2.png' %}">
  43. </div>
  44. </div>
  45. <h2>Integration Settings</h2>
  46. <form method="post" class="form-horizontal" action="{% url 'hc-add-channel' %}">
  47. {% csrf_token %}
  48. <input type="hidden" name="kind" value="slack" />
  49. <div class="form-group">
  50. <label class="col-sm-2 control-label">Callback URL</label>
  51. <div class="col-sm-10">
  52. <input type="text" class="form-control" name="value" placeholder="">
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <div class="col-sm-offset-2 col-sm-10">
  57. <button type="submit" class="btn btn-primary">Save Integration</button>
  58. </div>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. {% endblock %}
  64. {% block scripts %}
  65. {% compress js %}
  66. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  67. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  68. {% endcompress %}
  69. {% endblock %}