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.

242 lines
11 KiB

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