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.

198 lines
9.3 KiB

10 years ago
9 years ago
10 years ago
8 years ago
10 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
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/icomoon.css' %}" type="text/css">
  20. <link rel="stylesheet" href="{% static 'css/nouislider.min.css' %}" type="text/css">
  21. <link rel="stylesheet" href="{% static 'css/nouislider.pips.css' %}" type="text/css">
  22. <link rel="stylesheet" href="{% static 'css/bootstrap-select.min.css' %}" type="text/css">
  23. <link rel="stylesheet" href="{% static 'css/snippet-copy.css' %}" type="text/css">
  24. <link rel="stylesheet" href="{% static 'css/base.css' %}" type="text/css">
  25. <link rel="stylesheet" href="{% static 'css/docs.css' %}" type="text/css">
  26. <link rel="stylesheet" href="{% static 'css/docs_cron.css' %}" type="text/css">
  27. <link rel="stylesheet" href="{% static 'css/welcome.css' %}" type="text/css">
  28. <link rel="stylesheet" href="{% static 'css/my_checks.css' %}" type="text/css">
  29. <link rel="stylesheet" href="{% static 'css/my_checks_desktop.css' %}" type="text/css">
  30. <link rel="stylesheet" href="{% static 'css/pricing.css' %}" type="text/css">
  31. <link rel="stylesheet" href="{% static 'css/syntax.css' %}" type="text/css">
  32. <link rel="stylesheet" href="{% static 'css/channels.css' %}" type="text/css">
  33. <link rel="stylesheet" href="{% static 'css/channel_checks.css' %}" type="text/css">
  34. <link rel="stylesheet" href="{% static 'css/details.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/log.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/add_webhook.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  43. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  44. <link rel="stylesheet" href="{% static 'css/login.css' %}" type="text/css">
  45. <link rel="stylesheet" href="{% static 'css/projects.css' %}" type="text/css">
  46. <link rel="stylesheet" href="{% static 'css/add_project_modal.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"
  67. href="{% url 'hc-index' %}"
  68. title="{% site_name %} - Monitor Cron Jobs">
  69. {% if request.user.is_authenticated %}
  70. <img
  71. id="logo"
  72. height="50"
  73. width="59"
  74. src="{% static 'img/logo.png'%}"
  75. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  76. alt="{% site_name %}">
  77. {% else %}
  78. <img
  79. id="logo"
  80. height="50"
  81. width="200"
  82. src="{% static 'img/logo-full.png'%}"
  83. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  84. alt="{% site_name %}">
  85. {% endif %}
  86. </a>
  87. </div>
  88. <div id="navbar" class="navbar-collapse collapse">
  89. <ul id="nav-main-sections" class="nav navbar-nav">
  90. {% if request.user.is_authenticated and request.profile.current_project %}
  91. <li {% if page == 'checks' %} class="active" {% endif %}>
  92. <a href="{% url 'hc-checks' request.profile.current_project.code %}">Checks</a>
  93. </li>
  94. <li {% if page == 'channels' %} class="active" {% endif %}>
  95. <a href="{% url 'hc-channels' %}">Integrations</a>
  96. </li>
  97. {% endif %}
  98. {% if show_pricing %}
  99. <li {% if page == 'pricing' %} class="active" {% endif %}>
  100. <a href="{% url 'hc-pricing' %}">Pricing</a>
  101. </li>
  102. {% endif %}
  103. <li {% if page == 'docs' %} class="active" {% endif %}>
  104. <a href="{% url 'hc-docs' %}">Docs</a>
  105. </li>
  106. </ul>
  107. {% if request.user.is_authenticated %}
  108. <ul class="nav navbar-nav navbar-right">
  109. <li class="dropdown">
  110. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  111. {% if check %}
  112. {{ check.project }}
  113. {% elif request.profile.current_project %}
  114. {{ request.profile.current_project }}
  115. {% else %}
  116. {{ request.user.email }}
  117. {% endif %}
  118. <span class="caret"></span>
  119. </a>
  120. <ul class="dropdown-menu">
  121. {% for project in request.profile.annotated_projects %}
  122. <li class="dropdown-header">{{ project }}</li>
  123. <li>
  124. <a href="{% url 'hc-checks' project.code %}">
  125. Checks
  126. {% if project.n_down %}
  127. <span class="badge badge-down pull-right">
  128. {{ project.n_down }}
  129. </span>
  130. {% endif %}
  131. </a>
  132. </li>
  133. {% if project.owner_id == request.user.id %}
  134. <li>
  135. <a href="{% url 'hc-project-settings' project.code %}">Project Settings</a>
  136. </li>
  137. {% endif %}
  138. <li role="separator" class="divider"></li>
  139. {% endfor %}
  140. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  141. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  142. </ul>
  143. </li>
  144. </ul>
  145. {% elif page != "login" %}
  146. <ul class="nav navbar-nav navbar-right">
  147. <li><a href="{% url 'hc-login' %}">Sign In</a></li>
  148. </ul>
  149. {% endif %}
  150. {% if show_search %}
  151. <form class="navbar-form navbar-right hidden-xs hidden-sm">
  152. <input id="search" type="text" placeholder="Search checks&hellip;" class="form-control" value="{{ search }}">
  153. </form>
  154. {% endif %}
  155. </div>
  156. </div>
  157. </nav>
  158. {% block containers %}
  159. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  160. {% block content %}{% endblock %}
  161. </div>
  162. {% endblock %}
  163. <footer class="footer">
  164. <div class="container{% if page == "checks" or page == "details" %}-fluid{% endif %}">
  165. <ul>
  166. <li>
  167. Powered by Healthchecks open-source project
  168. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  169. <a href="https://healthchecks.io">healthchecks.io</a>)
  170. </li>
  171. </ul>
  172. </div>
  173. </footer>
  174. {% block scripts %}
  175. {% compress js %}
  176. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  177. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  178. {% endcompress %}
  179. {% endblock %}
  180. </body>
  181. </html>