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.

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