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.

88 lines
4.0 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="#php" data-toggle="tab">PHP</a>
  25. </li>
  26. <li class="hidden-xs">
  27. <a href="#cs" data-toggle="tab">C#</a>
  28. </li>
  29. <li class="hidden-xs">
  30. <a href="#browser" data-toggle="tab">Browser</a>
  31. </li>
  32. <li class="hidden-xs">
  33. <a href="#powershell" data-toggle="tab">PowerShell</a>
  34. </li>
  35. <li class="hidden-xs">
  36. <a href="#email" data-toggle="tab">Email</a>
  37. </li>
  38. </ul>
  39. </div>
  40. <div class="modal-body">
  41. <div class="tab-content">
  42. {% with ping_url=check.url|default:'<span class="ex"></span>' %}
  43. <div role="tabpanel" class="tab-pane active" id="crontab">
  44. {% include "front/snippets/crontab.html" %}
  45. </div>
  46. <div role="tabpanel" class="tab-pane" id="bash">
  47. {% include "front/snippets/bash_curl.html" %}
  48. {% include "front/snippets/bash_wget.html" %}
  49. </div>
  50. <div role="tabpanel" class="tab-pane" id="python">
  51. {% include "front/snippets/python_urllib2.html" %}
  52. {% include "front/snippets/python_requests.html" %}
  53. </div>
  54. <div role="tabpanel" class="tab-pane" id="ruby">
  55. {% include "front/snippets/ruby.html" %}
  56. </div>
  57. <div role="tabpanel" class="tab-pane" id="node">
  58. {% include "front/snippets/node.html" %}
  59. </div>
  60. <div role="tabpanel" class="tab-pane" id="php">
  61. {% include "front/snippets/php.html" %}
  62. </div>
  63. <div role="tabpanel" class="tab-pane" id="cs">
  64. {% include "front/snippets/cs.html" %}
  65. </div>
  66. <div class="tab-pane" id="browser">
  67. {% include "front/snippets/browser.html" %}
  68. </div>
  69. <div class="tab-pane" id="powershell">
  70. {% include "front/snippets/powershell.html" %}
  71. </div>
  72. <div class="tab-pane" id="email">
  73. <p>
  74. As an alternative to HTTP/HTTPS requests,
  75. you can "ping" this check by sending an
  76. email message to
  77. <code class="em">{{ check.email }}</code>
  78. </p>
  79. </div>
  80. {% endwith %}
  81. </div>
  82. </div>
  83. <div class="modal-footer">
  84. <button type="button" class="btn btn-default" data-dismiss="modal">Got It!</button>
  85. </div>
  86. </div>
  87. </div>
  88. </div>