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.

104 lines
3.3 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Notification Channels - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>HipChat</h1>
  8. <p>If your team uses <a href="https://www.hipchat.com/">HipChat</a>,
  9. you can set up {% site_name %} to post status updates directly to an
  10. appropriate HipChat room.</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 HipChat account and
  16. pick an appropriate room. From the options menu
  17. select <strong>Integrations...</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_hipchat_1.png' %}">
  24. </div>
  25. </div>
  26. <div class="row ai-step">
  27. <div class="col-sm-6">
  28. <span class="step-no">2</span>
  29. <p>
  30. From the list of available integrations, select
  31. <strong>Build Your Own</strong>. It's at the very top.
  32. </p>
  33. <p>
  34. Give it a descriptive name
  35. and click <strong>Create</strong>.
  36. </p>
  37. </div>
  38. <div class="col-sm-6">
  39. <img
  40. class="ai-guide-screenshot"
  41. alt="Screenshot"
  42. src="{% static 'img/integrations/setup_hipchat_2.png' %}">
  43. </div> </div>
  44. <div class="row ai-step">
  45. <div class="col-sm-6">
  46. <span class="step-no">3</span>
  47. <p>Copy the displayed <strong>URL</strong> and paste it down below.</p>
  48. <p>Save the integration, and it's done!</p>
  49. </div>
  50. <div class="col-sm-6">
  51. <img
  52. class="ai-guide-screenshot"
  53. alt="Screenshot"
  54. src="{% static 'img/integrations/setup_hipchat_3.png' %}">
  55. </div>
  56. </div>
  57. <h2>Integration Settings</h2>
  58. <form method="post" class="form-horizontal" action="{% url 'hc-add-hipchat' %}">
  59. {% csrf_token %}
  60. <div class="form-group {{ form.value.css_classes }}">
  61. <label for="callback-url" class="col-sm-2 control-label">Callback URL</label>
  62. <div class="col-sm-10">
  63. <input
  64. id="callback-url"
  65. type="text"
  66. class="form-control"
  67. name="value"
  68. placeholder="https://"
  69. value="{{ form.value.value|default:"" }}">
  70. {% if form.value.errors %}
  71. <div class="help-block">
  72. {{ form.value.errors|join:"" }}
  73. </div>
  74. {% endif %}
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <div class="col-sm-offset-2 col-sm-10">
  79. <button type="submit" class="btn btn-primary">Save Integration</button>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. </div>
  85. {% endblock %}
  86. {% block scripts %}
  87. {% compress js %}
  88. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  89. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  90. {% endcompress %}
  91. {% endblock %}