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.2 KiB

10 years ago
9 years ago
10 years ago
8 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
9 years ago
10 years ago
9 years ago
10 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. {% load hc_extras %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <title>{% block title %}{% site_name %} - Monitor Cron Jobs. Get Notified When Your Cron Jobs Fail{% endblock %}</title>
  7. {% block description %}
  8. <meta name="description" content="Monitor and Get Notified When Your Cron Jobs Fail. Free alternative to Cronitor and Dead Man's Snitch.">
  9. {% endblock %}
  10. {% block keywords %}
  11. <meta name="keywords" content="healthchecks, monitor cron jobs, cron monitoring, cron job syntax, health checks, crontab cheat sheet, crontab monitoring, cronjob monitoring, cron dashboard">
  12. {% endblock %}
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <meta name="apple-mobile-web-app-title" content="{% site_name %}">
  15. <meta name="application-name" content="{% site_name %}">
  16. {% load compress staticfiles %}
  17. <link rel="icon" type="image/x-icon" href="{% static 'img/favicon.ico' %}">
  18. <link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/apple-touch-180.png' %}">
  19. {% compress css %}
  20. <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}" type="text/css">
  21. <link rel="stylesheet" href="{% static 'css/icomoon.css' %}" type="text/css">
  22. <link rel="stylesheet" href="{% static 'css/nouislider.min.css' %}" type="text/css">
  23. <link rel="stylesheet" href="{% static 'css/nouislider.pips.css' %}" type="text/css">
  24. <link rel="stylesheet" href="{% static 'css/selectize.bootstrap3.css' %}" type="text/css">
  25. <link rel="stylesheet" href="{% static 'css/snippet-copy.css' %}" type="text/css">
  26. <link rel="stylesheet" href="{% static 'css/base.css' %}" type="text/css">
  27. <link rel="stylesheet" href="{% static 'css/docs.css' %}" type="text/css">
  28. <link rel="stylesheet" href="{% static 'css/docs_cron.css' %}" type="text/css">
  29. <link rel="stylesheet" href="{% static 'css/welcome.css' %}" type="text/css">
  30. <link rel="stylesheet" href="{% static 'css/my_checks.css' %}" type="text/css">
  31. <link rel="stylesheet" href="{% static 'css/my_checks_desktop.css' %}" type="text/css">
  32. <link rel="stylesheet" href="{% static 'css/pricing.css' %}" type="text/css">
  33. <link rel="stylesheet" href="{% static 'css/syntax.css' %}" type="text/css">
  34. <link rel="stylesheet" href="{% static 'css/channels.css' %}" type="text/css">
  35. <link rel="stylesheet" href="{% static 'css/channel_checks.css' %}" type="text/css">
  36. <link rel="stylesheet" href="{% static 'css/log.css' %}" type="text/css">
  37. <link rel="stylesheet" href="{% static 'css/add_pushover.css' %}" type="text/css">
  38. <link rel="stylesheet" href="{% static 'css/add_webhook.css' %}" type="text/css">
  39. <link rel="stylesheet" href="{% static 'css/settings.css' %}" type="text/css">
  40. <link rel="stylesheet" href="{% static 'css/ping_details.css' %}" type="text/css">
  41. <link rel="stylesheet" href="{% static 'css/profile.css' %}" type="text/css">
  42. <link rel="stylesheet" href="{% static 'css/checkbox.css' %}" type="text/css">
  43. <link rel="stylesheet" href="{% static 'css/radio.css' %}" type="text/css">
  44. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  45. {% endcompress %}
  46. </head>
  47. <body class="page-{{ page }}">
  48. <nav class="navbar navbar-default">
  49. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  50. <div class="navbar-header">
  51. <button
  52. type="button"
  53. class="navbar-toggle collapsed"
  54. data-toggle="collapse"
  55. data-target="#navbar"
  56. aria-expanded="false"
  57. aria-controls="navbar">
  58. <span class="sr-only">Toggle navigation</span>
  59. <span class="icon-bar"></span>
  60. <span class="icon-bar"></span>
  61. <span class="icon-bar"></span>
  62. </button>
  63. <a class="navbar-brand"
  64. href="{% url 'hc-index' %}"
  65. title="{% site_name %} - Monitor Cron Jobs">
  66. {% if request.user.is_authenticated %}
  67. <img
  68. id="logo"
  69. height="50"
  70. width="59"
  71. src="{% static 'img/logo.png'%}"
  72. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  73. alt="{% site_name %}">
  74. {% else %}
  75. <img
  76. id="logo"
  77. height="50"
  78. width="200"
  79. src="{% static 'img/logo-full.png'%}"
  80. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  81. alt="{% site_name %}">
  82. {% endif %}
  83. </a>
  84. </div>
  85. <div id="navbar" class="navbar-collapse collapse">
  86. <ul id="nav-main-sections" class="nav navbar-nav">
  87. {% if request.user.is_authenticated %}
  88. <li {% if page == 'checks' %} class="active" {% endif %}>
  89. <a href="{% url 'hc-checks' %}">Checks</a>
  90. </li>
  91. <li {% if page == 'channels' %} class="active" {% endif %}>
  92. <a href="{% url 'hc-channels' %}">Integrations</a>
  93. </li>
  94. {% endif %}
  95. {% if show_pricing %}
  96. <li {% if page == 'pricing' %} class="active" {% endif %}>
  97. <a href="{% url 'hc-pricing' %}">Pricing</a>
  98. </li>
  99. {% endif %}
  100. <li {% if page == 'docs' %} class="active" {% endif %}>
  101. <a href="{% url 'hc-docs' %}">Docs</a>
  102. </li>
  103. </ul>
  104. {% if request.user.is_authenticated %}
  105. {% else %}
  106. <ul class="nav navbar-nav navbar-right">
  107. <li><a href="{% url 'hc-login' %}">Log In</a></li>
  108. </ul>
  109. {% endif %}
  110. {% if request.user.is_authenticated %}
  111. <ul class="nav navbar-nav navbar-right">
  112. <li class="dropdown">
  113. <a id="nav-email" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
  114. {{ request.team }} <span class="caret"></span>
  115. </a>
  116. <ul class="dropdown-menu">
  117. {% with teams=request.get_teams %}
  118. {% if teams %}
  119. <li class="dropdown-header">{{ request.user.profile }}</li>
  120. <li>
  121. <a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a>
  122. </li>
  123. {% endif %}
  124. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  125. <li role="separator" class="divider"></li>
  126. {% for team in teams %}
  127. <li class="dropdown-header">{{ team }}</li>
  128. <li>
  129. <a href="{% url 'hc-switch-team' team.user.username %}">Checks</a>
  130. </li>
  131. <li role="separator" class="divider"></li>
  132. {% endfor %}
  133. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  134. {% endwith %}
  135. </ul>
  136. </li>
  137. </ul>
  138. {% endif %}
  139. </div>
  140. </div>
  141. </nav>
  142. {% block containers %}
  143. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  144. {% block content %}{% endblock %}
  145. </div>
  146. {% endblock %}
  147. <footer class="footer">
  148. <div class="container{% if page == "checks" %}-fluid{% endif %}">
  149. <ul>
  150. <li>
  151. Powered by Healthchecks open-source project
  152. (<a href="https://github.com/healthchecks/healthchecks">github</a>,
  153. <a href="https://healthchecks.io">healthchecks.io</a>)
  154. </li>
  155. </ul>
  156. </div>
  157. </footer>
  158. {% block scripts %}
  159. {% compress js %}
  160. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  161. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  162. {% endcompress %}
  163. {% endblock %}
  164. </body>
  165. </html>