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.

178 lines
7.9 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/ping_details.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. <link rel="stylesheet" href="{% static 'css/billing.css' %}" type="text/css">
  42. {% endcompress %}
  43. </head>
  44. <body class="page-{{ page }}">
  45. <nav class="navbar navbar-default">
  46. <div class="container">
  47. <div class="navbar-header">
  48. <button
  49. type="button"
  50. class="navbar-toggle collapsed"
  51. data-toggle="collapse"
  52. data-target="#navbar"
  53. aria-expanded="false"
  54. aria-controls="navbar">
  55. <span class="sr-only">Toggle navigation</span>
  56. <span class="icon-bar"></span>
  57. <span class="icon-bar"></span>
  58. <span class="icon-bar"></span>
  59. </button>
  60. <a class="navbar-brand"
  61. href="{% url 'hc-index' %}"
  62. title="{% site_name %} - Monitor Cron Jobs">
  63. {% if request.user.is_authenticated %}
  64. <img
  65. id="logo"
  66. height="50"
  67. width="59"
  68. src="{% static 'img/logo.png'%}"
  69. srcset="{% static 'img/logo.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  70. alt="{% site_name %}">
  71. {% else %}
  72. <img
  73. id="logo"
  74. height="50"
  75. width="200"
  76. src="{% static 'img/logo-full.png'%}"
  77. srcset="{% static 'img/logo-full.png'%} 1x, {% static 'img/[email protected]'%} 2x"
  78. alt="{% site_name %}">
  79. {% endif %}
  80. </a>
  81. </div>
  82. <div id="navbar" class="navbar-collapse collapse">
  83. <ul id="nav-main-sections" class="nav navbar-nav">
  84. {% if request.user.is_authenticated %}
  85. <li {% if page == 'checks' %} class="active" {% endif %}>
  86. <a href="{% url 'hc-checks' %}">Checks</a>
  87. </li>
  88. <li {% if page == 'channels' %} class="active" {% endif %}>
  89. <a href="{% url 'hc-channels' %}">Integrations</a>
  90. </li>
  91. {% endif %}
  92. {% if show_pricing %}
  93. <li {% if page == 'pricing' %} class="active" {% endif %}>
  94. <a href="{% url 'hc-pricing' %}">Pricing</a>
  95. </li>
  96. {% endif %}
  97. <li {% if page == 'docs' %} class="active" {% endif %}>
  98. <a href="{% url 'hc-docs' %}">Docs</a>
  99. </li>
  100. </ul>
  101. {% if request.user.is_authenticated %}
  102. {% else %}
  103. <ul class="nav navbar-nav navbar-right">
  104. <li><a href="{% url 'hc-login' %}">Log In</a></li>
  105. </ul>
  106. {% endif %}
  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. {{ request.team }} <span class="caret"></span>
  112. </a>
  113. <ul class="dropdown-menu">
  114. {% with teams=request.get_teams %}
  115. {% if teams %}
  116. <li class="dropdown-header">{{ request.user.profile }}</li>
  117. <li>
  118. <a href="{% url 'hc-switch-team' request.user.username %}" class="active">Checks</a>
  119. </li>
  120. {% endif %}
  121. <li><a href="{% url 'hc-profile' %}">Account Settings</a></li>
  122. <li role="separator" class="divider"></li>
  123. {% for team in teams %}
  124. <li class="dropdown-header">{{ team }}</li>
  125. <li>
  126. <a href="{% url 'hc-switch-team' team.user.username %}">Checks</a>
  127. </li>
  128. <li role="separator" class="divider"></li>
  129. {% endfor %}
  130. <li><a href="{% url 'hc-logout' %}">Log Out</a></li>
  131. {% endwith %}
  132. </ul>
  133. </li>
  134. </ul>
  135. {% endif %}
  136. </div>
  137. </div>
  138. </nav>
  139. {% block containers %}
  140. <div class="container">
  141. {% block content %}{% endblock %}
  142. </div>
  143. {% endblock %}
  144. <footer class="footer">
  145. <div class="container">
  146. <ul>
  147. <li>Powered by Healthchecks open-source project <a href="https://github.com/healthchecks/healthchecks">(github)</a></li>
  148. </ul>
  149. </div>
  150. </footer>
  151. {% block scripts %}
  152. {% compress js %}
  153. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  154. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  155. {% endcompress %}
  156. {% endblock %}
  157. </body>
  158. </html>