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.

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