forked from GithubBackups/healthchecks
105 lines
3.4 KiB
HTML
105 lines
3.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load humanize static hc_extras %}
|
|
|
|
{% block title %}LineNotify Integration for {% site_name %}{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h1>LINE Notify</h1>
|
|
|
|
<p><a href="https://notify-bot.line.me/en/">LINE Notify</a>
|
|
allows you to send notifications directly to your LINE chats.
|
|
You can set up {% site_name %} to post status updates directly to an
|
|
appropriate LINE chat. </p>
|
|
|
|
|
|
<h2>Setup Guide</h2>
|
|
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no"></span>
|
|
<p>
|
|
Log into your LINE account,
|
|
go to <strong>My Page</strong> in the upper right corner.
|
|
In the <strong>My Page</strong>, scroll to the bottom of the page,
|
|
and click on <strong>Generate token</strong> button.
|
|
</p>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="marker-wrap">
|
|
<span style="left: 77%; top: 14%;" class="marker"></span>
|
|
<img
|
|
class="ai-guide-screenshot"
|
|
alt="Screenshot"
|
|
src="{% static 'img/integrations/setup_linenotify_1.png' %}" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no"></span>
|
|
<p>
|
|
It will pop up the <strong>Generate token</strong> Form.
|
|
Fill out the details, and click the button.
|
|
</p>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<img
|
|
class="ai-guide-screenshot"
|
|
alt="Screenshot"
|
|
src="{% static 'img/integrations/setup_linenotify_2.png' %}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row ai-step">
|
|
<div class="col-sm-6">
|
|
<span class="step-no"></span>
|
|
<p>
|
|
Copy the displayed <strong>Token</strong> and paste it
|
|
in the form below.
|
|
Save the integration, and it's done!
|
|
</p>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<img
|
|
class="ai-guide-screenshot"
|
|
alt="Screenshot"
|
|
src="{% static 'img/integrations/setup_linenotify_3.png' %}">
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Integration Settings</h2>
|
|
|
|
<form method="post" class="form-horizontal">
|
|
{% csrf_token %}
|
|
<div class="form-group {{ form.value.css_classes }}">
|
|
<label for="api-token" class="col-sm-2 control-label">API Token</label>
|
|
<div class="col-sm-10">
|
|
<input
|
|
id="api-token"
|
|
type="text"
|
|
class="form-control"
|
|
name="token"
|
|
placeholder=""
|
|
value="{{ form.token.value|default:"" }}">
|
|
|
|
{% if form.token.errors %}
|
|
<div class="help-block">
|
|
{{ form.token.errors|join:"" }}
|
|
</div>
|
|
{% endif %}
|
|
</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>
|
|
{% endblock %}
|