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.

185 lines
8.8 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
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/add_project_modal.css' %}" type="text/css">
  20. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  21. <link rel="stylesheet" href="{% static 'css/add_webhook.css' %}" type="text/css">
  22. <link rel="stylesheet" href="{% static 'css/base.css' %}" type="text/css">
  23. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  24. <link rel="stylesheet" href="{% static 'css/bootstrap-select.min.css' %}" type="text/css">
  25. <link rel="stylesheet" href="{% static 'css/channel_checks.css' %}" type="text/css">
  26. <link rel="stylesheet" href="{% static 'css/channels.css' %}" type="text/css">
  27. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  28. <link rel="stylesheet" href="{% static 'css/details.css' %}" type="text/css">
  29. <link rel="stylesheet" href="{% static 'css/docs.css' %}" type="text/css">
  30. <link rel="stylesheet" href="{% static 'css/docs_cron.css' %}" type="text/css">
  31. <link rel="stylesheet" href="{% static 'css/icomoon.css' %}" type="text/css">
  32. <link rel="stylesheet" href="{% static 'css/log.css' %}" type="text/css">
  33. <link rel="stylesheet" href="{% static 'css/login.css' %}" type="text/css">
  34. <link rel="stylesheet" href="{% static 'css/my_checks.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/my_checks_desktop.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/nouislider.min.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/nouislider.pips.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/pricing.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/projects.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  43. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  44. <link rel="stylesheet" href="{% static 'css/snippet-copy.css' %}" type="text/css">
  45. <link rel="stylesheet" href="{% static 'css/syntax.css' %}" type="text/css">
  46. <link rel="stylesheet" href="{% static 'css/welcome.css' %}" type="text/css">
  47. {% endcompress %}
  48. </head>
  49. <body class="page-{{ page }}">
  50. {% debug_warning %}
  51. <nav class="navbar navbar-default">
  52. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  53. <div class="navbar-header">
  54. <button
  55. type="button"
  56. class="navbar-toggle collapsed"
  57. data-toggle="collapse"
  58. data-target="#navbar"
  59. aria-expanded="false"
  60. aria-controls="navbar">
  61. <span class="sr-only">Toggle navigation</span>
  62. <span class="icon-bar"></span>
  63. <span class="icon-bar"></span>
  64. <span class="icon-bar"></span>
  65. </button>
  66. <a class="navbar-brand" href="/">
  67. {% if request.user.is_authenticated and project %}
  68. {{ project }}
  69. <span class="caret"></span>
  70. {% elif request.user.is_authenticated%}
  71. <img
  72. id="logo"
  73. height="50"
  74. width="59"
  75. src="{% static 'img/logo.png'%}"
  76. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  77. alt="{% site_name %}">
  78. {% else %}
  79. <img
  80. id="logo"
  81. height="50"
  82. width="200"
  83. src="{% static 'img/logo-full.png'%}"
  84. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  85. alt="{% site_name %}">
  86. {% endif %}
  87. </a>
  88. </div>
  89. <div id="navbar" class="navbar-collapse collapse">
  90. {% if project %}
  91. <ul id="nav-main-sections" class="nav navbar-nav">
  92. <li {% if page == 'checks' %} class="active" {% endif %}>
  93. <a href="{% url 'hc-checks' project.code %}">Checks</a>
  94. </li>
  95. <li {% if page == 'channels' %} class="active" {% endif %}>
  96. <a href="{% url 'hc-channels' %}">Integrations</a>
  97. </li>
  98. <li {% if page == 'badges' %} class="active" {% endif %}>
  99. <a href="{% url 'hc-badges' project.code %}">Badges</a>
  100. </li>
  101. <li {% if page == 'project' %} class="active" {% endif %}>
  102. <a href="{% url 'hc-project-settings' project.code %}">Settings</a>
  103. </li>
  104. </ul>
  105. {% endif %}
  106. <ul id="global-links" class="nav navbar-nav navbar-right">
  107. {% if show_pricing %}
  108. <li {% if page == 'pricing' %} class="active" {% endif %}>
  109. <a href="{% url 'hc-pricing' %}">Pricing</a>
  110. </li>
  111. {% endif %}
  112. <li {% if page == 'docs' %} class="active" {% endif %}>
  113. <a href="{% url 'hc-docs' %}">Docs</a>
  114. </li>
  115. {% if request.user.is_authenticated %}
  116. <li class="dropdown">
  117. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  118. Account
  119. <span class="caret"></span>
  120. </a>
  121. <ul class="dropdown-menu">
  122. <li class="dropdown-header">Projects</li>
  123. {% for project in request.profile.annotated_projects %}
  124. <li class="project-item">
  125. <a href="{% url 'hc-checks' project.code %}">
  126. <span class="name">{{ project }}</span>
  127. {% if project.n_down %}
  128. <span class="badge badge-down pull-right">
  129. {{ project.n_down }}
  130. </span>
  131. {% endif %}
  132. </a>
  133. </li>
  134. {% endfor %}
  135. <li role="separator" class="divider"></li>
  136. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  137. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  138. </ul>
  139. </li>
  140. {% elif page != "login" %}
  141. <li><a href="{% url 'hc-login' %}">Sign In</a></li>
  142. {% endif %}
  143. </ul>
  144. </div>
  145. </div>
  146. </nav>
  147. {% block containers %}
  148. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  149. {% block content %}{% endblock %}
  150. </div>
  151. {% endblock %}
  152. <footer class="footer">
  153. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  154. <ul>
  155. <li>
  156. Powered by Healthchecks open-source project
  157. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  158. <a href="https://healthchecks.io">healthchecks.io</a>)
  159. </li>
  160. </ul>
  161. </div>
  162. </footer>
  163. {% block scripts %}
  164. {% compress js %}
  165. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  166. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  167. {% endcompress %}
  168. {% endblock %}
  169. </body>
  170. </html>