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.

115 lines
3.7 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add PagerDuty - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>PagerDuty</h1>
  8. <div class="jumbotron">
  9. {% if request.user.is_authenticated %}
  10. <p>If your team uses <a href="https://www.pagerduty.com">PagerDuty</a>,
  11. you can set up {% site_name %} to create a PagerDuty incident when
  12. a check goes down, and resolve it when a check goes back up.</p>
  13. <div class="text-center">
  14. <div class="text-center">
  15. <a href="{{ connect_url|safe }}">
  16. <img
  17. alt="Alert with PagerDuty"
  18. height="55" width="299"
  19. src="{% static 'img/integrations/pd_connect_button.png' %}" />
  20. </a>
  21. </div>
  22. </div>
  23. {% else %}
  24. <p>
  25. {% site_name %} is a <strong>free</strong> and
  26. <a href="https://github.com/healthchecks/healthchecks">open source</a>
  27. service for monitoring your cron jobs, background processes and
  28. scheduled tasks. Before adding PagerDuty integration, please log into
  29. {% site_name %}:</p>
  30. <div class="text-center">
  31. <form class="form-inline" action="{% url 'hc-login' %}" method="post">
  32. {% csrf_token %}
  33. <div class="form-group">
  34. <div class="input-group input-group-lg">
  35. <div class="input-group-addon">@</div>
  36. <input
  37. type="email"
  38. class="form-control"
  39. name="email"
  40. autocomplete="email"
  41. placeholder="Email">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <button type="submit" class="btn btn-lg btn-primary pull-right">
  46. Log In
  47. </button>
  48. </div>
  49. </form>
  50. </div>
  51. {% endif %}
  52. </div>
  53. <h2>Setup Guide</h2>
  54. <div class="row ai-step">
  55. <div class="col-sm-6">
  56. <span class="step-no">1</span>
  57. <p>
  58. After {% if request.user.is_authenticated %}{% else %}logging in and{% endif %}
  59. clicking on "Alert with PagerDuty", you will be
  60. asked to log into your PagerDuty account.
  61. </p>
  62. </div>
  63. <div class="col-sm-6">
  64. <img
  65. class="ai-guide-screenshot"
  66. alt="Screenshot"
  67. src="{% static 'img/integrations/setup_pd_1.png' %}">
  68. </div>
  69. </div>
  70. <div class="row ai-step">
  71. <div class="col-sm-6">
  72. <span class="step-no">2</span>
  73. <p>
  74. Next, PagerDuty will let set the name and escalation policy
  75. for this integration.
  76. </p>
  77. </div>
  78. <div class="col-sm-6">
  79. <img
  80. class="ai-guide-screenshot"
  81. alt="Screenshot"
  82. src="{% static 'img/integrations/setup_pd_2.png' %}">
  83. </div>
  84. </div>
  85. <div class="row ai-step">
  86. <div class="col-sm-6">
  87. <span class="step-no">3</span>
  88. <p>
  89. And that is all! You will then be redirected back to
  90. "Integrations" page on {% site_name %} and see
  91. the new integration!
  92. </p>
  93. </div>
  94. <div class="col-sm-6">
  95. <img
  96. class="ai-guide-screenshot"
  97. alt="Screenshot"
  98. src="{% static 'img/integrations/setup_pd_3.png' %}">
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. {% endblock %}