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.

100 lines
3.8 KiB

8 years ago
8 years ago
  1. {% extends "base.html" %}
  2. {% load compress staticfiles hc_extras %}
  3. {% block title %}Account Settings - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1 class="settings-title">Settings</h1>
  8. </div>
  9. </div>
  10. <div class="row">
  11. <div class="col-sm-2">
  12. <ul class="nav nav-pills nav-stacked">
  13. <li><a href="{% url 'hc-profile' %}">Account</a></li>
  14. {% if show_pricing %}
  15. <li><a href="{% url 'hc-billing' %}">Billing</a></li>
  16. {% endif %}
  17. <li><a href="{% url 'hc-notifications' %}">Email Reports</a></li>
  18. <li class="active"><a href="{% url 'hc-badges' %}">Badges</a></li>
  19. </ul>
  20. </div>
  21. <div class="col-sm-10">
  22. <div class="panel panel-default">
  23. <div class="panel-body settings-block">
  24. <h2 class="settings-title">Status Badges</h2>
  25. <p id="badges-description">
  26. healthchecks.io provides status badges for each of the tags
  27. you have used. The badges have public, but hard-to-guess
  28. URLs. If you wish, you can add them to your READMEs,
  29. dashboards or status pages.
  30. </p>
  31. <div id="b-format" class="btn-group" data-toggle="buttons">
  32. <label id="show-svg" class="btn btn-default active">
  33. <input type="radio" autocomplete="off" checked> SVG
  34. </label>
  35. <label id="show-json" class="btn btn-default">
  36. <input type="radio" autocomplete="off"> JSON
  37. </label>
  38. </div>
  39. <table id="badges-svg" class="badges table">
  40. {% for urldict in urls %}
  41. <tr>
  42. <td>
  43. <img src="{{ urldict.svg }}" alt="" />
  44. </td>
  45. <td class="svg-url">
  46. <code>{{ urldict.svg }}</code>
  47. </td>
  48. </tr>
  49. {% endfor %}
  50. <tr>
  51. <td class="overall-status {% if urls %}have-tags{% endif %}" colspan="2">Overall status:</td>
  52. </tr>
  53. <tr>
  54. <td>
  55. <img src="{{ master.svg }}" alt="" />
  56. </td>
  57. <td class="svg-url">
  58. <code>{{ master.svg }}</code>
  59. </td>
  60. </tr>
  61. </table>
  62. <table id="badges-json" class="badges table">
  63. {% for urldict in urls %}
  64. <tr>
  65. <td class="json-response" data-url="{{ urldict.json }}">
  66. </td>
  67. <td class="json-url">
  68. <code>{{ urldict.json }}</code>
  69. </td>
  70. </tr>
  71. {% endfor %}
  72. <tr>
  73. <td class="overall-status {% if urls %}have-tags{% endif %}"" colspan="2">Overall status:</td>
  74. </tr>
  75. <tr>
  76. <td class="json-response" data-url="{{ master.json }}">
  77. <td class="json-url">
  78. <code>{{ master.json }}</code>
  79. </td>
  80. </tr>
  81. </table>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. {% endblock %}
  87. {% block scripts %}
  88. {% compress js %}
  89. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  90. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  91. <script src="{% static 'js/badges.js' %}"></script>
  92. {% endcompress %}
  93. {% endblock %}