From e612eda0f82bf75ab0ed8f702881909caa3f9c8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C4=93teris=20Caune?=
Date: Mon, 6 Jun 2016 16:21:42 +0300
Subject: [PATCH] Nicer login email.
---
templates/emails/base.html | 216 ++++++++++++++++++++++++++
templates/emails/login-body-html.html | 52 +++++--
templates/front/docs.html | 4 +-
3 files changed, 261 insertions(+), 11 deletions(-)
create mode 100644 templates/emails/base.html
diff --git a/templates/emails/base.html b/templates/emails/base.html
new file mode 100644
index 00000000..7ed8998c
--- /dev/null
+++ b/templates/emails/base.html
@@ -0,0 +1,216 @@
+
+
+
+
+
+ {% block title %}{% endblock %}
+
+
+
+
+
+
+
+
+
+
+ Healthchecks
+ |
+
+
+
+
+
+
+
+
+ {% block content %}{% endblock %}
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/templates/emails/login-body-html.html b/templates/emails/login-body-html.html
index affa7a5c..2b72ba2b 100644
--- a/templates/emails/login-body-html.html
+++ b/templates/emails/login-body-html.html
@@ -1,16 +1,50 @@
-Hello,
+{% extends "emails/base.html" %}
+
+{% block content %}
+Hello,
{% if inviting_profile %}
-Joining {{ inviting_profile }} will allow you to manage existing
-monitoring checks and set up new ones. If you already have your own account
-on healthchecks.io, you will be able to switch between the two accounts.
+ {{ inviting_profile }} invites you to their
+ healthchecks.io account.
+
+ You will be able to manage their
+ existing monitoring checks and set up new ones. If you already have your
+ own account on healthchecks.io, you will be able to switch
+ between the two
+ accounts.
{% endif %}
-Here's a link to log yourself in:
-{{ login_link }}
+To log into healthchecks.io, please press the button below:
+
+
+Thanks,
The Healthchecks.io Team
- --
- Regards,
- healthchecks.io
+ P.S. Need help getting started? Check out our
+ help documentation.
+ Or, just reply to this email with any questions or issues you have.
+
+
+
+
+ If you’re having trouble clicking the log in button, copy and paste the URL below into your web browser.
+
+ {{ login_link }}
+ |
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/front/docs.html b/templates/front/docs.html
index 1d145a88..fe46eba7 100644
--- a/templates/front/docs.html
+++ b/templates/front/docs.html
@@ -12,8 +12,8 @@ page has an unique "ping" URL. Whenever you access this URL,
the "Last Ping" value of corresponding check is updated.
When a certain amount of time passes since last received ping, the
-check is considered "late", and Health Checks sends an email alert.
-It is all very simple, really.
+check is considered "late", and healthchecks.io sends an email alert.
+It is a simple idea.
Executing a Ping