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.

249 lines
12 KiB

10 years ago
9 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
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
7 years ago
7 years ago
10 years ago
10 years ago
9 years ago
10 years ago
  1. <!DOCTYPE html>{% load compress i18n static hc_extras %}
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{% block title %}{% blocktrans trimmed %}{{ site_name }} - Monitor Cron Jobs. Get Notified When Your Cron Jobs Fail{% endblocktrans %}{% 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. {% if request.user.is_authenticated and request.profile.theme == 'dark' %}
  16. <meta name="theme-color" content="#18181b">
  17. {% endif %}
  18. <link rel="icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}">
  19. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/apple-touch-180.png' %}">
  20. {% block head %}{% endblock %}
  21. {% compress css %}
  22. <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}" type="text/css">
  23. <link rel="stylesheet" href="{% static 'css/bootstrap-select.min.css' %}" type="text/css">
  24. <link rel="stylesheet" href="{% static 'css/selectize.hc.css' %}" type="text/css">
  25. <link rel="stylesheet" href="{% static 'css/variables.css' %}" type="text/css">
  26. <link rel="stylesheet" href="{% static 'css/bootstrap-colors.css' %}" type="text/css">
  27. <link rel="stylesheet" href="{% static 'css/base.css' %}" type="text/css">
  28. <link rel="stylesheet" href="{% static 'css/add_credential.css' %}" type="text/css">
  29. <link rel="stylesheet" href="{% static 'css/add_project_modal.css' %}" type="text/css">
  30. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  31. <link rel="stylesheet" href="{% static 'css/appearance.css' %}" type="text/css">
  32. <link rel="stylesheet" href="{% static 'css/webhook_form.css' %}" type="text/css">
  33. <link rel="stylesheet" href="{% static 'css/badges.css' %}" type="text/css">
  34. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/channel_checks.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/channels.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/details.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/docs.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/docs_cron.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/icomoon.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/log.css' %}" type="text/css">
  43. <link rel="stylesheet" href="{% static 'css/login.css' %}" type="text/css">
  44. <link rel="stylesheet" href="{% static 'css/my_checks.css' %}" type="text/css">
  45. <link rel="stylesheet" href="{% static 'css/my_checks_desktop.css' %}" type="text/css">
  46. <link rel="stylesheet" href="{% static 'css/nouislider.min.css' %}" type="text/css">
  47. <link rel="stylesheet" href="{% static 'css/nouislider.pips.css' %}" type="text/css">
  48. <link rel="stylesheet" href="{% static 'css/nouislider.dark.css' %}" type="text/css">
  49. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  50. <link rel="stylesheet" href="{% static 'css/pricing.css' %}" type="text/css">
  51. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  52. <link rel="stylesheet" href="{% static 'css/projects.css' %}" type="text/css">
  53. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  54. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  55. <link rel="stylesheet" href="{% static 'css/snippet-copy.css' %}" type="text/css">
  56. <link rel="stylesheet" href="{% static 'css/syntax.css' %}" type="text/css">
  57. <link rel="stylesheet" href="{% static 'css/welcome.css' %}" type="text/css">
  58. <link rel="stylesheet" href="{% static 'css/set_password.css' %}" type="text/css">
  59. {% endcompress %}
  60. </head>
  61. <body class="page-{{ page }}{% if request.user.is_authenticated and request.profile.theme == 'dark' %} dark{% endif%}">
  62. {% debug_warning %}
  63. <nav class="navbar navbar-default">
  64. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  65. <div class="navbar-header">
  66. <button
  67. type="button"
  68. class="navbar-toggle collapsed"
  69. data-toggle="collapse"
  70. data-target="#navbar"
  71. aria-expanded="false"
  72. aria-controls="navbar">
  73. <span class="sr-only">{% trans "Toggle navigation" %}</span>
  74. <span class="icon-bar"></span>
  75. <span class="icon-bar"></span>
  76. <span class="icon-bar"></span>
  77. </button>
  78. <a id="base-url" class="navbar-brand" href="{% url 'hc-index' %}">
  79. {% if request.user.is_authenticated and project %}
  80. {{ project }}
  81. <span class="caret"></span>
  82. {% elif request.user.is_authenticated%}
  83. <img
  84. id="logo"
  85. height="50"
  86. src="{% static 'img/logo.png'%}"
  87. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  88. alt="{{ site_name }}">
  89. {% else %}
  90. <img
  91. id="logo"
  92. height="50"
  93. src="{% static 'img/logo-full.png'%}"
  94. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  95. alt="{{ site_name }}">
  96. {% endif %}
  97. </a>
  98. </div>
  99. <div id="navbar" class="navbar-collapse collapse">
  100. {% if project %}
  101. <ul id="nav-main-sections" class="nav navbar-nav">
  102. <li {% if page == 'checks' %} class="active" {% endif %}>
  103. <a href="{% url 'hc-checks' project.code %}">
  104. {% trans "Checks" %}
  105. </a>
  106. </li>
  107. {% with b=project.have_channel_issues %}
  108. <li {% if b %}id="broken-channels"{% endif %} {% if page == 'channels' %}class="active"{% endif %}>
  109. <a href="{% url 'hc-channels' project.code %}">
  110. {% trans "Integrations" %}
  111. {% if b %}<span class="ic-grace"></span>{% endif %}
  112. </a>
  113. </li>
  114. {% endwith %}
  115. <li {% if page == 'badges' %} class="active" {% endif %}>
  116. <a href="{% url 'hc-badges' project.code %}">
  117. {% trans "Badges" %}
  118. </a>
  119. </li>
  120. <li {% if page == 'project' %} class="active" {% endif %}>
  121. <a href="{% url 'hc-project-settings' project.code %}">
  122. {% trans "Settings" %}
  123. </a>
  124. </li>
  125. </ul>
  126. {% endif %}
  127. <ul id="global-links" class="nav navbar-nav navbar-right">
  128. {% if show_pricing %}
  129. <li {% if page == 'pricing' %} class="active" {% endif %}>
  130. {% if project %}
  131. <a href="{% url 'hc-p-pricing' project.code %}">
  132. {% trans "Pricing" %}
  133. </a>
  134. {% else %}
  135. <a href="{% url 'hc-pricing' %}">
  136. {% trans "Pricing" %}
  137. </a>
  138. {% endif %}
  139. </li>
  140. {% endif %}
  141. <li {% if page == 'docs' %} class="active" {% endif %}>
  142. <a href="{% url 'hc-docs' %}">
  143. {% trans "Docs" %}
  144. </a>
  145. </li>
  146. {% if request.user.is_authenticated %}
  147. <li class="dropdown">
  148. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  149. {% trans "Account" %}
  150. <span class="caret"></span>
  151. </a>
  152. <ul class="dropdown-menu">
  153. {% if request.user.is_superuser %}
  154. <li><a href="{% url 'admin:index' %}">
  155. {% trans "Site Administration" %}
  156. </a></li>
  157. <li role="separator" class="divider"></li>
  158. {% endif %}
  159. <li class="dropdown-header">
  160. {% trans "Projects" %}
  161. </li>
  162. {% for project in request.profile.annotated_projects %}
  163. <li class="project-item">
  164. <a href="{% url 'hc-checks' project.code %}">
  165. <span class="name">{{ project }}</span>
  166. {% if project.n_down %}
  167. <span class="badge badge-down pull-right">
  168. {{ project.n_down }}
  169. </span>
  170. {% endif %}
  171. </a>
  172. </li>
  173. {% endfor %}
  174. <li role="separator" class="divider"></li>
  175. <li class="dropdown-header">{{ request.user.email }}</li>
  176. <li>
  177. <a href="{% url 'hc-profile' %}">
  178. {% trans "Account Settings" %}
  179. </a>
  180. </li>
  181. <li>
  182. <a href="{% url 'hc-logout' %}">
  183. {% trans "Log Out" %}
  184. </a>
  185. </li>
  186. </ul>
  187. </li>
  188. {% elif page != "login" %}
  189. <li>
  190. <a href="{% url 'hc-login' %}">
  191. {% trans "Sign In" %}
  192. </a>
  193. </li>
  194. {% endif %}
  195. {% if registration_open %}
  196. {% if page == "welcome" or page == "login" %}
  197. <li>
  198. <a id="nav-sign-up" href="#" data-toggle="modal" data-target="#signup-modal">
  199. <span>{% trans "Sign Up" %}</span>
  200. </a>
  201. </li>
  202. {% endif %}
  203. {% endif %}
  204. </ul>
  205. </div>
  206. </div>
  207. </nav>
  208. {% block containers %}
  209. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  210. {% block content %}{% endblock %}
  211. </div>
  212. {% endblock %}
  213. <footer class="footer">
  214. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  215. <ul>
  216. <li>
  217. Healthchecks {% site_version %}
  218. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  219. <a href="https://healthchecks.io">healthchecks.io</a>)
  220. </li>
  221. </ul>
  222. </div>
  223. </footer>
  224. {% block scripts %}
  225. {% compress js %}
  226. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  227. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  228. {% endcompress %}
  229. {% endblock %}
  230. </body>
  231. </html>