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.

130 lines
4.3 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {% extends "base.html" %}
  2. {% load humanize staticfiles %}
  3. {% block containers %}
  4. <div class="index-bleed">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-sm-12">
  8. <h1 id="pitch">Get Notified When Your Cron Jobs Fail</h1>
  9. </div>
  10. </div>
  11. <div class="row">
  12. <div class="col-sm-12">
  13. <h2 id="pitch-subtitle">Here's an unique ping address for you:</h2>
  14. <div id="pitch-url">{{ ping_url }}</div>
  15. </div>
  16. </div>
  17. <div class="row">
  18. <div class="col-sm-12">
  19. <ul class="nav nav-tabs" role="tablist">
  20. <li class="active">
  21. <a href="#crontab" data-toggle="tab">Crontab</a>
  22. </li>
  23. <li>
  24. <a href="#bash" data-toggle="tab">Bash</a>
  25. </li>
  26. <li>
  27. <a href="#python" data-toggle="tab">Python</a>
  28. </li>
  29. <li>
  30. <a href="#node" data-toggle="tab">Node.js</a>
  31. </li>
  32. <li>
  33. <a href="#php" data-toggle="tab">PHP</a>
  34. </li>
  35. <li>
  36. <a href="#browser" data-toggle="tab">Browser</a>
  37. </li>
  38. </ul>
  39. <div class="tab-content">
  40. <div role="tabpanel" class="tab-pane active" id="crontab">
  41. {% include "front/snippets/crontab.html" %}
  42. </div>
  43. <div role="tabpanel" class="tab-pane" id="bash">
  44. {% include "front/snippets/bash.html" %}
  45. </div>
  46. <div role="tabpanel" class="tab-pane" id="python">
  47. {% include "front/snippets/python.html" %}
  48. </div>
  49. <div class="tab-pane" id="browser">
  50. {% include "front/snippets/browser.html" %}
  51. <div class="welcome-browser-controls">
  52. <button id="run-it" class="btn btn-default">Run It!</button>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="container">
  61. <div class="row">
  62. <div id="welcome-status" class="col-sm-6">
  63. <h2>Status
  64. <small id="check-code">{{ check.code }}</small>
  65. </h2>
  66. <table class="table">
  67. <tr>
  68. <th>Last ping</th>
  69. <th>Frequency</th>
  70. <th>Alert in</th>
  71. </tr>
  72. <tr>
  73. <td id="last-ping">
  74. {% if check.last_ping %}
  75. {{ check.last_ping|naturaltime }}
  76. {% else %}
  77. Never
  78. {% endif %}
  79. </td>
  80. <td>1 day
  81. <span
  82. class="glyphicon glyphicon-question-sign"
  83. data-toggle="tooltip"
  84. title="Sign in to change frequency"></span>
  85. </td>
  86. <td id="timer" data-timer="{{ timer}}">
  87. {{ timer_formatted }}
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. <div id="get-started" class="col-sm-6">
  93. <h3>E-mail Address to Receive Alerts:</h3>
  94. <form action="{% url 'hc-login' %}" method="post">
  95. {% csrf_token %}
  96. <div class="form-group">
  97. <div class="input-group input-group-lg">
  98. <div class="input-group-addon">@</div>
  99. <input
  100. type="email"
  101. class="form-control"
  102. id="id_email"
  103. name="email"
  104. autocomplete="email"
  105. placeholder="Email">
  106. </div>
  107. </div>
  108. <div class="clearfix">
  109. <button type="submit" class="btn btn-lg btn-primary pull-right">
  110. Get Started
  111. </button>
  112. </div>
  113. </form>
  114. </div>
  115. </div>
  116. </div>
  117. {% endblock %}
  118. {% block scripts %}
  119. <script src="{% static 'js/index.js' %}"></script>
  120. {% endblock %}