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.

94 lines
4.3 KiB

  1. <div id="show-usage-modal" class="modal">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal">&times;</button>
  6. <h4 id="usage-examples-title">Usage Examples</h4>
  7. <ul class="nav nav-pills" role="tablist">
  8. <li class="active">
  9. <a href="#crontab" data-toggle="tab">Crontab</a>
  10. </li>
  11. <li>
  12. <a href="#bash" data-toggle="tab">Bash</a>
  13. </li>
  14. <li>
  15. <a href="#python" data-toggle="tab">Python</a>
  16. </li>
  17. <li>
  18. <a href="#ruby" data-toggle="tab">Ruby</a>
  19. </li>
  20. <li class="hidden-xs">
  21. <a href="#node" data-toggle="tab">Node.js</a>
  22. </li>
  23. <li class="hidden-xs">
  24. <a href="#go" data-toggle="tab">Go</a>
  25. </li>
  26. <li class="hidden-xs">
  27. <a href="#php" data-toggle="tab">PHP</a>
  28. </li>
  29. <li class="hidden-xs">
  30. <a href="#cs" data-toggle="tab">C#</a>
  31. </li>
  32. <li class="hidden-xs">
  33. <a href="#browser" data-toggle="tab">Browser</a>
  34. </li>
  35. <li class="hidden-xs">
  36. <a href="#powershell" data-toggle="tab">PowerShell</a>
  37. </li>
  38. <li class="hidden-xs">
  39. <a href="#email" data-toggle="tab">Email</a>
  40. </li>
  41. </ul>
  42. </div>
  43. <div class="modal-body">
  44. <div class="tab-content">
  45. {% with ping_url=check.url|default:'<span class="ex"></span>' %}
  46. <div role="tabpanel" class="tab-pane active" id="crontab">
  47. {% include "front/snippets/crontab.html" %}
  48. </div>
  49. <div role="tabpanel" class="tab-pane" id="bash">
  50. {% include "front/snippets/bash_curl.html" %}
  51. {% include "front/snippets/bash_wget.html" %}
  52. </div>
  53. <div role="tabpanel" class="tab-pane" id="python">
  54. {% include "front/snippets/python_urllib2.html" %}
  55. {% include "front/snippets/python_requests.html" %}
  56. </div>
  57. <div role="tabpanel" class="tab-pane" id="ruby">
  58. {% include "front/snippets/ruby.html" %}
  59. </div>
  60. <div role="tabpanel" class="tab-pane" id="node">
  61. {% include "front/snippets/node.html" %}
  62. </div>
  63. <div role="tabpanel" class="tab-pane" id="go">
  64. {% include "front/snippets/go.html" %}
  65. </div>
  66. <div role="tabpanel" class="tab-pane" id="php">
  67. {% include "front/snippets/php.html" %}
  68. </div>
  69. <div role="tabpanel" class="tab-pane" id="cs">
  70. {% include "front/snippets/cs.html" %}
  71. </div>
  72. <div class="tab-pane" id="browser">
  73. {% include "front/snippets/browser.html" %}
  74. </div>
  75. <div class="tab-pane" id="powershell">
  76. {% include "front/snippets/powershell.html" %}
  77. </div>
  78. <div class="tab-pane" id="email">
  79. <p>
  80. As an alternative to HTTP/HTTPS requests,
  81. you can "ping" this check by sending an
  82. email message to
  83. <code class="em">{{ check.email }}</code>
  84. </p>
  85. </div>
  86. {% endwith %}
  87. </div>
  88. </div>
  89. <div class="modal-footer">
  90. <button type="button" class="btn btn-default" data-dismiss="modal">Got It!</button>
  91. </div>
  92. </div>
  93. </div>
  94. </div>