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.

206 lines
9.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
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 static 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. <link rel="stylesheet" href="{% static 'css/set_password.css' %}" type="text/css">
  48. {% endcompress %}
  49. </head>
  50. <body class="page-{{ page }}">
  51. {% debug_warning %}
  52. <nav class="navbar navbar-default">
  53. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  54. <div class="navbar-header">
  55. <button
  56. type="button"
  57. class="navbar-toggle collapsed"
  58. data-toggle="collapse"
  59. data-target="#navbar"
  60. aria-expanded="false"
  61. aria-controls="navbar">
  62. <span class="sr-only">Toggle navigation</span>
  63. <span class="icon-bar"></span>
  64. <span class="icon-bar"></span>
  65. <span class="icon-bar"></span>
  66. </button>
  67. <a id="base-url" class="navbar-brand" href="{% url 'hc-index' %}">
  68. {% if request.user.is_authenticated and project %}
  69. {{ project }}
  70. <span class="caret"></span>
  71. {% elif request.user.is_authenticated%}
  72. <img
  73. id="logo"
  74. height="50"
  75. width="59"
  76. src="{% static 'img/logo.png'%}"
  77. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  78. alt="{% site_name %}">
  79. {% else %}
  80. <img
  81. id="logo"
  82. height="50"
  83. width="200"
  84. src="{% static 'img/logo-full.png'%}"
  85. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  86. alt="{% site_name %}">
  87. {% endif %}
  88. </a>
  89. </div>
  90. <div id="navbar" class="navbar-collapse collapse">
  91. {% if project %}
  92. <ul id="nav-main-sections" class="nav navbar-nav">
  93. <li {% if page == 'checks' %} class="active" {% endif %}>
  94. <a href="{% url 'hc-checks' project.code %}">Checks</a>
  95. </li>
  96. {% with b=project.have_broken_channels %}
  97. <li {% if b %}id="broken-channels"{% endif %} {% if page == 'channels' %}class="active"{% endif %}>
  98. <a href="{% url 'hc-channels' %}">
  99. Integrations
  100. {% if b %}<span class="icon-grace"></span>{% endif %}
  101. </a>
  102. </li>
  103. {% endwith %}
  104. <li {% if page == 'badges' %} class="active" {% endif %}>
  105. <a href="{% url 'hc-badges' project.code %}">Badges</a>
  106. </li>
  107. <li {% if page == 'project' %} class="active" {% endif %}>
  108. <a href="{% url 'hc-project-settings' project.code %}">Settings</a>
  109. </li>
  110. </ul>
  111. {% endif %}
  112. <ul id="global-links" class="nav navbar-nav navbar-right">
  113. {% if show_pricing %}
  114. <li {% if page == 'pricing' %} class="active" {% endif %}>
  115. <a href="{% url 'hc-pricing' %}">Pricing</a>
  116. </li>
  117. {% endif %}
  118. <li {% if page == 'docs' %} class="active" {% endif %}>
  119. <a href="{% url 'hc-docs' %}">Docs</a>
  120. </li>
  121. {% if request.user.is_authenticated %}
  122. <li class="dropdown">
  123. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  124. Account
  125. <span class="caret"></span>
  126. </a>
  127. <ul class="dropdown-menu">
  128. {% if request.user.is_superuser %}
  129. <li><a href="{% url 'admin:index' %}">Site Administration</a></li>
  130. <li role="separator" class="divider"></li>
  131. {% endif %}
  132. <li class="dropdown-header">Projects</li>
  133. {% for project in request.profile.annotated_projects %}
  134. <li class="project-item">
  135. <a href="{% url 'hc-checks' project.code %}">
  136. <span class="name">{{ project }}</span>
  137. {% if project.n_down %}
  138. <span class="badge badge-down pull-right">
  139. {{ project.n_down }}
  140. </span>
  141. {% endif %}
  142. </a>
  143. </li>
  144. {% endfor %}
  145. <li role="separator" class="divider"></li>
  146. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  147. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  148. </ul>
  149. </li>
  150. {% elif page != "login" %}
  151. <li><a href="{% url 'hc-login' %}">Sign In</a></li>
  152. {% endif %}
  153. {% if registration_open %}
  154. {% if page == "welcome" or page == "login" %}
  155. <li>
  156. <a id="nav-sign-up" href="#" data-toggle="modal" data-target="#signup-modal">
  157. <span>Sign Up</span>
  158. </a>
  159. </li>
  160. {% endif %}
  161. {% endif %}
  162. </ul>
  163. </div>
  164. </div>
  165. </nav>
  166. {% block containers %}
  167. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  168. {% block content %}{% endblock %}
  169. </div>
  170. {% endblock %}
  171. <footer class="footer">
  172. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  173. <ul>
  174. <li>
  175. Powered by Healthchecks open-source project
  176. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  177. <a href="https://healthchecks.io">healthchecks.io</a>)
  178. </li>
  179. </ul>
  180. </div>
  181. </footer>
  182. {% block scripts %}
  183. {% compress js %}
  184. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  185. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  186. {% endcompress %}
  187. {% endblock %}
  188. </body>
  189. </html>