diff --git a/hc/front/views.py b/hc/front/views.py index 0d7c8a8e..dcccbd0f 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -7,7 +7,11 @@ from hc.front.forms import TimeoutForm, TIMEOUT_CHOICES def index(request): - return render(request, "index.html") + ctx = { + "page": "welcome" + } + + return render(request, "index.html", ctx) @login_required @@ -18,7 +22,8 @@ def checks(request): ctx = { "checks": checks, "now": timezone.now, - "timeout_choices": TIMEOUT_CHOICES + "timeout_choices": TIMEOUT_CHOICES, + "page": "checks" } return render(request, "front/index.html", ctx) diff --git a/static/img/intro-create-check.png b/static/img/intro-create-check.png new file mode 100644 index 00000000..d4ed9cb1 Binary files /dev/null and b/static/img/intro-create-check.png differ diff --git a/templates/base.html b/templates/base.html index 4d64c6ba..64f663f4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,6 +9,39 @@ + +
{% block content %}{% endblock %}
diff --git a/templates/front/index.html b/templates/front/index.html index cc7a8b91..b37b702e 100644 --- a/templates/front/index.html +++ b/templates/front/index.html @@ -4,7 +4,7 @@ {% block content %}
-

Hello {{ request.user.email }}

+

My Checks

diff --git a/templates/index.html b/templates/index.html index fbbab476..5c60fc54 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,33 +1,73 @@ {% extends "base.html" %} +{% load staticfiles %} {% block content %}
-

Hello World

- -

Get started here:

-
- {% csrf_token %} - -
-
-
@
- +

Get Notified When Your CRON Jobs Fail

+
    +
  1. Create a pingback address on healtchecks.io
    + Screenshot of 'My Checks' + +
  2. +
  3. Add a single line at the bottom of your batch processing task: + + + +
    +
    +
    wget https://healthchecks.io/ping/b2012751-something-something/
    +                        
    +
    +
    +
    +>>> import urllib2
    +>>> urllib2.urlopen("http://localhost:8000/ping/b2012751-c542-4deb-b054-ff51322102b9")
    +
    +                        
    +
    +
    + + +
  4. +
  5. Receive an email from healthchecks.io when the task has an issue:
  6. +
+
+
+ +

E-mail Address to Receive Notifications:

+ + {% csrf_token %} + +
+
+
@
+ +
+
+ +
+
-
- -
- -
- +