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