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.

187 lines
8.6 KiB

10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
10 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
7 years ago
10 years ago
10 years ago
9 years ago
10 years ago
  1. <!DOCTYPE html>{% load compress staticfiles hc_extras %}
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{% block title %}{% site_name %} - Monitor Cron Jobs. Get Notified When Your Cron Jobs Fail{% endblock %}</title>
  6. {% block description %}
  7. <meta name="description" content="Monitor and Get Notified When Your Cron Jobs Fail. Free alternative to Cronitor and Dead Man's Snitch.">
  8. {% endblock %}
  9. {% block keywords %}
  10. <meta name="keywords" content="healthchecks, monitor cron jobs, cron monitoring, cron job syntax, health checks, crontab cheat sheet, crontab monitoring, cronjob monitoring, cron dashboard">
  11. {% endblock %}
  12. <meta name="viewport" content="width=device-width, initial-scale=1">
  13. <meta name="apple-mobile-web-app-title" content="{% site_name %}">
  14. <meta name="application-name" content="{% site_name %}">
  15. <link rel="icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}">
  16. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/apple-touch-180.png' %}">
  17. {% compress css %}
  18. <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}" type="text/css">
  19. <link rel="stylesheet" href="{% static 'css/icomoon.css' %}" type="text/css">
  20. <link rel="stylesheet" href="{% static 'css/nouislider.min.css' %}" type="text/css">
  21. <link rel="stylesheet" href="{% static 'css/nouislider.pips.css' %}" type="text/css">
  22. <link rel="stylesheet" href="{% static 'css/selectize.bootstrap3.css' %}" type="text/css">
  23. <link rel="stylesheet" href="{% static 'css/snippet-copy.css' %}" type="text/css">
  24. <link rel="stylesheet" href="{% static 'css/base.css' %}" type="text/css">
  25. <link rel="stylesheet" href="{% static 'css/docs.css' %}" type="text/css">
  26. <link rel="stylesheet" href="{% static 'css/docs_cron.css' %}" type="text/css">
  27. <link rel="stylesheet" href="{% static 'css/welcome.css' %}" type="text/css">
  28. <link rel="stylesheet" href="{% static 'css/my_checks.css' %}" type="text/css">
  29. <link rel="stylesheet" href="{% static 'css/my_checks_desktop.css' %}" type="text/css">
  30. <link rel="stylesheet" href="{% static 'css/pricing.css' %}" type="text/css">
  31. <link rel="stylesheet" href="{% static 'css/syntax.css' %}" type="text/css">
  32. <link rel="stylesheet" href="{% static 'css/channels.css' %}" type="text/css">
  33. <link rel="stylesheet" href="{% static 'css/channel_checks.css' %}" type="text/css">
  34. <link rel="stylesheet" href="{% static 'css/details.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/log.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/add_webhook.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  43. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  44. <link rel="stylesheet" href="{% static 'css/login.css' %}" type="text/css">
  45. {% endcompress %}
  46. </head>
  47. <body class="page-{{ page }}">
  48. {% debug_warning %}
  49. <nav class="navbar navbar-default">
  50. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  51. <div class="navbar-header">
  52. <button
  53. type="button"
  54. class="navbar-toggle collapsed"
  55. data-toggle="collapse"
  56. data-target="#navbar"
  57. aria-expanded="false"
  58. aria-controls="navbar">
  59. <span class="sr-only">Toggle navigation</span>
  60. <span class="icon-bar"></span>
  61. <span class="icon-bar"></span>
  62. <span class="icon-bar"></span>
  63. </button>
  64. <a class="navbar-brand"
  65. href="{% url 'hc-index' %}"
  66. title="{% site_name %} - Monitor Cron Jobs">
  67. {% if request.user.is_authenticated %}
  68. <img
  69. id="logo"
  70. height="50"
  71. width="59"
  72. src="{% static 'img/logo.png'%}"
  73. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  74. alt="{% site_name %}">
  75. {% else %}
  76. <img
  77. id="logo"
  78. height="50"
  79. width="200"
  80. src="{% static 'img/logo-full.png'%}"
  81. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  82. alt="{% site_name %}">
  83. {% endif %}
  84. </a>
  85. </div>
  86. <div id="navbar" class="navbar-collapse collapse">
  87. <ul id="nav-main-sections" class="nav navbar-nav">
  88. {% if request.user.is_authenticated %}
  89. <li {% if page == 'checks' %} class="active" {% endif %}>
  90. <a href="{% url 'hc-checks' %}">Checks</a>
  91. </li>
  92. <li {% if page == 'channels' %} class="active" {% endif %}>
  93. <a href="{% url 'hc-channels' %}">Integrations</a>
  94. </li>
  95. {% endif %}
  96. {% if show_pricing %}
  97. <li {% if page == 'pricing' %} class="active" {% endif %}>
  98. <a href="{% url 'hc-pricing' %}">Pricing</a>
  99. </li>
  100. {% endif %}
  101. <li {% if page == 'docs' %} class="active" {% endif %}>
  102. <a href="{% url 'hc-docs' %}">Docs</a>
  103. </li>
  104. </ul>
  105. {% if request.user.is_authenticated %}
  106. <ul class="nav navbar-nav navbar-right">
  107. <li class="dropdown">
  108. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  109. {{ request.team }} <span class="caret"></span>
  110. </a>
  111. <ul class="dropdown-menu">
  112. {% with teams=request.get_teams %}
  113. {% if teams %}
  114. <li class="dropdown-header">{{ request.user.profile }}</li>
  115. <li>
  116. <a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a>
  117. </li>
  118. {% endif %}
  119. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  120. <li role="separator" class="divider"></li>
  121. {% for team in teams %}
  122. <li class="dropdown-header">{{ team }}</li>
  123. <li>
  124. <a href="{% url 'hc-switch-team' team.user.username %}">Checks</a>
  125. </li>
  126. <li role="separator" class="divider"></li>
  127. {% endfor %}
  128. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  129. {% endwith %}
  130. </ul>
  131. </li>
  132. </ul>
  133. {% elif page != "login" %}
  134. <ul class="nav navbar-nav navbar-right">
  135. <li><a href="{% url 'hc-login' %}">Sign In</a></li>
  136. </ul>
  137. {% endif %}
  138. {% if show_search %}
  139. <form class="navbar-form navbar-right hidden-xs hidden-sm">
  140. <input id="search" type="text" placeholder="Search checks&hellip;" class="form-control" value="{{ search }}">
  141. </form>
  142. {% endif %}
  143. </div>
  144. </div>
  145. </nav>
  146. {% block containers %}
  147. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  148. {% block content %}{% endblock %}
  149. </div>
  150. {% endblock %}
  151. <footer class="footer">
  152. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  153. <ul>
  154. <li>
  155. Powered by Healthchecks open-source project
  156. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  157. <a href="https://healthchecks.io">healthchecks.io</a>)
  158. </li>
  159. </ul>
  160. </div>
  161. </footer>
  162. {% block scripts %}
  163. {% compress js %}
  164. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  165. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  166. {% endcompress %}
  167. {% endblock %}
  168. </body>
  169. </html>