{% extends "base.html" %}
|
|
{% load compress humanize staticfiles hc_extras %}
|
|
|
|
{% block title %}Add Slack - healthchecks.io{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h1>Slack</h1>
|
|
|
|
<p>If your team uses <a href="http://slack.com/">Slack</a>, you can set
|
|
up healthchecks.io to post status updates directly to an appropriate
|
|
Slack channel.</p>
|
|
|
|
<h2>Setup Guide</h2>
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no">1</span>
|
|
Log into your Slack account and
|
|
pick an appropriate Slack channel. From the dropdown next to
|
|
channel's name, pick <strong>Add a service integration...</strong>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<img
|
|
class="ai-guide-screenshot"
|
|
src="{% static 'img/integrations/setup_slack_1.png' %}">
|
|
</div>
|
|
</div>
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no">2</span>
|
|
From the list of available integrations, select
|
|
<strong>Incoming WebHooks</strong>, and click on
|
|
<strong>Add Incoming WebHooks Integration</strong>.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no">3</span>
|
|
<p>Copy the displayed <strong>WebHook URL</strong> and paste it down below.</p>
|
|
<p>Save the integration, and it's done!</p>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<img
|
|
class="ai-guide-screenshot"
|
|
src="{% static 'img/integrations/setup_slack_2.png' %}">
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Integration Settings</h2>
|
|
|
|
<form method="post" class="form-horizontal" action="{% url 'hc-add-channel' %}">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="kind" value="slack" />
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Callback URL</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" name="value" placeholder="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-primary">Save Integration</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{% compress js %}
|
|
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
|
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
|
{% endcompress %}
|
|
{% endblock %}
|