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.

182 lines
8.2 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
10 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/log.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/add_webhook.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  43. {% endcompress %}
  44. </head>
  45. <body class="page-{{ page }}">
  46. <nav class="navbar navbar-default">
  47. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  48. <div class="navbar-header">
  49. <button
  50. type="button"
  51. class="navbar-toggle collapsed"
  52. data-toggle="collapse"
  53. data-target="#navbar"
  54. aria-expanded="false"
  55. aria-controls="navbar">
  56. <span class="sr-only">Toggle navigation</span>
  57. <span class="icon-bar"></span>
  58. <span class="icon-bar"></span>
  59. <span class="icon-bar"></span>
  60. </button>
  61. <a class="navbar-brand"
  62. href="{% url 'hc-index' %}"
  63. title="{% site_name %} - Monitor Cron Jobs">
  64. {% if request.user.is_authenticated %}
  65. <img
  66. id="logo"
  67. height="50"
  68. width="59"
  69. src="{% static 'img/logo.png'%}"
  70. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  71. alt="{% site_name %}">
  72. {% else %}
  73. <img
  74. id="logo"
  75. height="50"
  76. width="200"
  77. src="{% static 'img/logo-full.png'%}"
  78. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  79. alt="{% site_name %}">
  80. {% endif %}
  81. </a>
  82. </div>
  83. <div id="navbar" class="navbar-collapse collapse">
  84. <ul id="nav-main-sections" class="nav navbar-nav">
  85. {% if request.user.is_authenticated %}
  86. <li {% if page == 'checks' %} class="active" {% endif %}>
  87. <a href="{% url 'hc-checks' %}">Checks</a>
  88. </li>
  89. <li {% if page == 'channels' %} class="active" {% endif %}>
  90. <a href="{% url 'hc-channels' %}">Integrations</a>
  91. </li>
  92. {% endif %}
  93. {% if show_pricing %}
  94. <li {% if page == 'pricing' %} class="active" {% endif %}>
  95. <a href="{% url 'hc-pricing' %}">Pricing</a>
  96. </li>
  97. {% endif %}
  98. <li {% if page == 'docs' %} class="active" {% endif %}>
  99. <a href="{% url 'hc-docs' %}">Docs</a>
  100. </li>
  101. </ul>
  102. {% if request.user.is_authenticated %}
  103. {% else %}
  104. <ul class="nav navbar-nav navbar-right">
  105. <li><a href="{% url 'hc-login' %}">Log In</a></li>
  106. </ul>
  107. {% endif %}
  108. {% if request.user.is_authenticated %}
  109. <ul class="nav navbar-nav navbar-right">
  110. <li class="dropdown">
  111. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  112. {{ request.team }} <span class="caret"></span>
  113. </a>
  114. <ul class="dropdown-menu">
  115. {% with teams=request.get_teams %}
  116. {% if teams %}
  117. <li class="dropdown-header">{{ request.user.profile }}</li>
  118. <li>
  119. <a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a>
  120. </li>
  121. {% endif %}
  122. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  123. <li role="separator" class="divider"></li>
  124. {% for team in teams %}
  125. <li class="dropdown-header">{{ team }}</li>
  126. <li>
  127. <a href="{% url 'hc-switch-team' team.user.username %}">Checks</a>
  128. </li>
  129. <li role="separator" class="divider"></li>
  130. {% endfor %}
  131. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  132. {% endwith %}
  133. </ul>
  134. </li>
  135. </ul>
  136. {% endif %}
  137. </div>
  138. </div>
  139. </nav>
  140. {% block containers %}
  141. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  142. {% block content %}{% endblock %}
  143. </div>
  144. {% endblock %}
  145. <footer class="footer">
  146. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  147. <ul>
  148. <li>
  149. Powered by Healthchecks open-source project
  150. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  151. <a href="https://healthchecks.io">healthchecks.io</a>)
  152. </li>
  153. </ul>
  154. </div>
  155. </footer>
  156. {% block scripts %}
  157. {% compress js %}
  158. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  159. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  160. {% endcompress %}
  161. {% endblock %}
  162. </body>
  163. </html>