@ -3,6 +3,7 @@ from django.core import mail | |||||
from hc.test import BaseTestCase | from hc.test import BaseTestCase | ||||
from hc.accounts.models import Member | from hc.accounts.models import Member | ||||
from hc.api.models import Check | from hc.api.models import Check | ||||
from django.conf import settings | |||||
class ProfileTestCase(BaseTestCase): | class ProfileTestCase(BaseTestCase): | ||||
@ -21,7 +22,7 @@ class ProfileTestCase(BaseTestCase): | |||||
# And an email should have been sent | # And an email should have been sent | ||||
self.assertEqual(len(mail.outbox), 1) | self.assertEqual(len(mail.outbox), 1) | ||||
expected_subject = 'Set password on healthchecks.io' | |||||
expected_subject = 'Set password on {0}'.format(getattr(settings, "SITE_NAME")) | |||||
self.assertEqual(mail.outbox[0].subject, expected_subject) | self.assertEqual(mail.outbox[0].subject, expected_subject) | ||||
def test_it_creates_api_key(self): | def test_it_creates_api_key(self): | ||||
@ -74,7 +75,7 @@ class ProfileTestCase(BaseTestCase): | |||||
# And an email should have been sent | # And an email should have been sent | ||||
subj = ('You have been invited to join' | subj = ('You have been invited to join' | ||||
' [email protected] on healthchecks.io') | |||||
' [email protected] on {0}'.format(getattr(settings, "SITE_NAME"))) | |||||
self.assertEqual(mail.outbox[0].subject, subj) | self.assertEqual(mail.outbox[0].subject, subj) | ||||
def test_add_team_member_checks_team_access_allowed_flag(self): | def test_add_team_member_checks_team_access_allowed_flag(self): | ||||
@ -1,18 +1,19 @@ | |||||
{% load hc_extras %} | |||||
{% block content %}Hello, | {% block content %}Hello, | ||||
{% if inviting_profile %} | {% if inviting_profile %} | ||||
{{ inviting_profile }} invites you to their healthchecks.io account. | |||||
{{ inviting_profile }} invites you to their {% settings_value "SITE_NAME" %} account. | |||||
You will be able to manage their existing monitoring checks and set up new | 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 | |||||
ones. If you already have your own account on {% settings_value "SITE_NAME" %}, you will | |||||
be able to switch between the two accounts.{% endif %} | be able to switch between the two accounts.{% endif %} | ||||
To log into healthchecks.io, please open the link below: | |||||
To log into {% settings_value "SITE_NAME" %}, please open the link below: | |||||
{{ login_link }} | {{ login_link }} | ||||
Thanks, | Thanks, | ||||
The Healthchecks.io Team | |||||
The {% settings_value "SITE_NAME" %} Team | |||||
P.S. Need help getting started? Check out our help documentation | P.S. Need help getting started? Check out our help documentation | ||||
at https://healthchecks.io/docs/ | |||||
at {% settings_value "SITE_ROOT" %}/docs/ | |||||
Or, just reply to this email with any questions or issues you have. | Or, just reply to this email with any questions or issues you have. | ||||
{% endblock %} | |||||
{% endblock %} |
@ -1,5 +1,6 @@ | |||||
{% load hc_extras %} | |||||
{% if inviting_profile %} | {% if inviting_profile %} | ||||
You have been invited to join {{ inviting_profile }} on healthchecks.io | |||||
You have been invited to join {{ inviting_profile }} on {% settings_value "SITE_NAME" %} | |||||
{% else %} | {% else %} | ||||
Log in to healthchecks.io | |||||
Log in to {% settings_value "SITE_NAME" %} | |||||
{% endif %} | {% endif %} |
@ -1,10 +1,11 @@ | |||||
{% load hc_extras %} | |||||
Hello, | Hello, | ||||
This is a monthly report sent by healthchecks.io. | |||||
This is a monthly report sent by {% settings_value "SITE_NAME" %}. | |||||
{% include 'emails/summary-text.html' %} | {% include 'emails/summary-text.html' %} | ||||
-- | -- | ||||
Cheers, | Cheers, | ||||
healthchecks.io | |||||
{% settings_value "SITE_NAME" %} | |||||
@ -1,10 +1,11 @@ | |||||
{% load hc_extras %} | |||||
<p>Hello,</p> | <p>Hello,</p> | ||||
<p>Here's a link to set a password for your account on healthchecks.io:</p> | |||||
<p>Here's a link to set a password for your account on {% settings_value "SITE_NAME" %}:</p> | |||||
<p><a href="{{ set_password_link }}">{{ set_password_link }}</a></p> | <p><a href="{{ set_password_link }}">{{ set_password_link }}</a></p> | ||||
<p> | <p> | ||||
--<br /> | --<br /> | ||||
Regards,<br /> | Regards,<br /> | ||||
healthchecks.io | |||||
{% settings_value "SITE_NAME" %} | |||||
</p> | </p> |
@ -1,10 +1,11 @@ | |||||
{% load hc_extras %} | |||||
Hello, | Hello, | ||||
Here's a link to set a password for your account on healthchecks.io: | |||||
Here's a link to set a password for your account on {% settings_value "SITE_NAME" %}: | |||||
{{ set_password_link }} | {{ set_password_link }} | ||||
-- | -- | ||||
Regards, | Regards, | ||||
healthchecks.io | |||||
{% settings_value "SITE_NAME" %} |
@ -1 +1,2 @@ | |||||
Set password on healthchecks.io | |||||
{% load hc_extras %} | |||||
Set password on {% settings_value "SITE_NAME" %} |
@ -1,11 +1,12 @@ | |||||
{% load hc_extras %} | |||||
<p>Hello,</p> | <p>Hello,</p> | ||||
<p>To start receiving healthchecks.io notification to this address, | |||||
<p>To start receiving {% settings_value "SITE_NAME" %} notification to this address, | |||||
please click the link below:</p> | please click the link below:</p> | ||||
<p><a href="{{ verify_link }}">{{ verify_link }}</a></p> | <p><a href="{{ verify_link }}">{{ verify_link }}</a></p> | ||||
<p> | <p> | ||||
--<br /> | --<br /> | ||||
Regards,<br /> | Regards,<br /> | ||||
healthchecks.io | |||||
{% settings_value "SITE_NAME" %} | |||||
</p> | </p> |
@ -1,10 +1,11 @@ | |||||
{% load hc_extras %} | |||||
Hello, | Hello, | ||||
To start receiving healthchecks.io notification to this address, | |||||
To start receiving {% settings_value "SITE_NAME" %} notification to this address, | |||||
please follow the link below: | please follow the link below: | ||||
{{ verify_link }} | {{ verify_link }} | ||||
-- | -- | ||||
Regards, | Regards, | ||||
healthchecks.io | |||||
{% settings_value "SITE_NAME" %} |
@ -1 +1,2 @@ | |||||
Verify email address on healthchecks.io | |||||
{% load hc_extras %} | |||||
Verify email address on {% settings_value "SITE_NAME" %} |
@ -1,7 +1,7 @@ | |||||
{% load hc_extras humanize %} | {% load hc_extras humanize %} | ||||
{ | { | ||||
"username": "healthchecks.io", | |||||
"icon_url": "https://healthchecks.io/static/img/[email protected]", | |||||
"username": "{% settings_value "SITE_NAME" %}", | |||||
"icon_url": "{% settings_value "SITE_ROOT" %}/static/img/[email protected]", | |||||
"attachments": [{ | "attachments": [{ | ||||
{% if check.status == "up" %} | {% if check.status == "up" %} | ||||
"color": "good", | "color": "good", | ||||