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.

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