forked from GithubBackups/healthchecks
5 SMS & WhatsApp sends/mo for free plans
This commit is contained in:
parent
2848076d87
commit
c13ec18a27
@ -55,7 +55,7 @@ class Profile(models.Model):
|
|||||||
token = models.CharField(max_length=128, blank=True)
|
token = models.CharField(max_length=128, blank=True)
|
||||||
current_project = models.ForeignKey("Project", models.SET_NULL, null=True)
|
current_project = models.ForeignKey("Project", models.SET_NULL, null=True)
|
||||||
last_sms_date = models.DateTimeField(null=True, blank=True)
|
last_sms_date = models.DateTimeField(null=True, blank=True)
|
||||||
sms_limit = models.IntegerField(default=0)
|
sms_limit = models.IntegerField(default=5)
|
||||||
sms_sent = models.IntegerField(default=0)
|
sms_sent = models.IntegerField(default=0)
|
||||||
team_limit = models.IntegerField(default=2)
|
team_limit = models.IntegerField(default=2)
|
||||||
sort = models.CharField(max_length=20, default="created")
|
sort = models.CharField(max_length=20, default="created")
|
||||||
@ -112,7 +112,7 @@ class Profile(models.Model):
|
|||||||
def send_sms_limit_notice(self, transport):
|
def send_sms_limit_notice(self, transport):
|
||||||
ctx = {"transport": transport, "limit": self.sms_limit}
|
ctx = {"transport": transport, "limit": self.sms_limit}
|
||||||
if self.sms_limit != 500 and settings.USE_PAYMENTS:
|
if self.sms_limit != 500 and settings.USE_PAYMENTS:
|
||||||
ctx["url"] = settings.SITE_ROOT + reverse("hc-billing")
|
ctx["url"] = settings.SITE_ROOT + reverse("hc-pricing")
|
||||||
|
|
||||||
emails.sms_limit(self.user.email, ctx)
|
emails.sms_limit(self.user.email, ctx)
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ each month.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if url %}
|
{% if url %}
|
||||||
<p>You can increase the monthly sending limit by <a href="{{ url }}">upgrading your billing plan</a>.</p>
|
<p>You can increase the monthly sending limit by upgrading your billing plan. <a href="{{ url }}">See Pricing</a>.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{% load hc_extras %}Hello,
|
{% load hc_extras %}Hello,
|
||||||
|
|
||||||
We could not deliver a {{ transport }} notification because your {% site_name %} account has reached its monthly sending limit of {{ limit }} sends per month. The limit resets at the start of each month.
|
We could not deliver a {{ transport }} notification because your {% site_name %} account has reached its monthly sending limit of {{ limit }} sends per month. The limit resets at the start of each month.
|
||||||
{% if url %}You can increase the monthly sending limit by upgrading your billing plan:
|
{% if url %}You can increase the monthly sending limit by upgrading your billing plan.
|
||||||
|
{% endif %}
|
||||||
{{ url }}{% endif %}
|
|
||||||
|
|
||||||
--
|
--
|
||||||
Regards,
|
Regards,
|
||||||
|
@ -322,7 +322,7 @@
|
|||||||
<img src="{% static 'img/integrations/sms.png' %}"
|
<img src="{% static 'img/integrations/sms.png' %}"
|
||||||
class="icon" alt="SMS icon" />
|
class="icon" alt="SMS icon" />
|
||||||
|
|
||||||
<h2>SMS {% if use_payments %}<small>(paid plans)</small>{% endif %}</h2>
|
<h2>SMS</h2>
|
||||||
<p>Get a text message to your phone when a check goes down.</p>
|
<p>Get a text message to your phone when a check goes down.</p>
|
||||||
|
|
||||||
<a href="{% url 'hc-add-sms' %}" class="btn btn-primary">Add Integration</a>
|
<a href="{% url 'hc-add-sms' %}" class="btn btn-primary">Add Integration</a>
|
||||||
@ -368,7 +368,7 @@
|
|||||||
<img src="{% static 'img/integrations/whatsapp.png' %}"
|
<img src="{% static 'img/integrations/whatsapp.png' %}"
|
||||||
class="icon" alt="WhatsApp icon" />
|
class="icon" alt="WhatsApp icon" />
|
||||||
|
|
||||||
<h2>WhatsApp {% if use_payments %}<small>(paid plans)</small>{% endif %}</h2>
|
<h2>WhatsApp</h2>
|
||||||
<p>Get a WhatsApp message when a check goes up or down.</p>
|
<p>Get a WhatsApp message when a check goes up or down.</p>
|
||||||
|
|
||||||
<a href="{% url 'hc-add-whatsapp' %}" class="btn btn-primary">Add Integration</a>
|
<a href="{% url 'hc-add-whatsapp' %}" class="btn btn-primary">Add Integration</a>
|
||||||
|
@ -51,19 +51,19 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12" id="period-controls">
|
<div class="col-sm-12" id="period-controls">
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-default">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="period"
|
|
||||||
value="monthly"
|
|
||||||
autocomplete="off"> Monthly
|
|
||||||
</label>
|
|
||||||
<label class="btn btn-default active">
|
<label class="btn btn-default active">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
name="period"
|
name="period"
|
||||||
value="annual"
|
value="monthly"
|
||||||
checked
|
checked
|
||||||
|
autocomplete="off"> Monthly
|
||||||
|
</label>
|
||||||
|
<label class="btn btn-default">
|
||||||
|
<input
|
||||||
|
type="radio"
|
||||||
|
name="period"
|
||||||
|
value="annual"
|
||||||
autocomplete="off"> Annual
|
autocomplete="off"> Annual
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<li class="list-group-item">3 Team Members</li>
|
<li class="list-group-item">3 Team Members</li>
|
||||||
<li class="list-group-item">100 Log Entries per Check</li>
|
<li class="list-group-item">100 Log Entries per Check</li>
|
||||||
<li class="list-group-item">API Access</li>
|
<li class="list-group-item">API Access</li>
|
||||||
<li class="list-group-item"> </li>
|
<li class="list-group-item">5 SMS {% if enable_whatsapp %}& WhatsApp{% endif %} Alerts per Month</li>
|
||||||
<li class="list-group-item"> </li>
|
<li class="list-group-item"> </li>
|
||||||
</ul>
|
</ul>
|
||||||
{% if not request.user.is_authenticated %}
|
{% if not request.user.is_authenticated %}
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<div class="panel-body text-center">
|
<div class="panel-body text-center">
|
||||||
<h1>Business</h1>
|
<h1>Business</h1>
|
||||||
<h2>
|
<h2>
|
||||||
<span id="s-price">$16</span><span class="mo">/mo</span>
|
<span id="s-price">$20</span><span class="mo">/mo</span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -130,7 +130,7 @@
|
|||||||
<div class="panel-body text-center">
|
<div class="panel-body text-center">
|
||||||
<h1>Business Plus</h1>
|
<h1>Business Plus</h1>
|
||||||
<h2>
|
<h2>
|
||||||
<span id="p-price">$64</span><span class="mo">/mo</span>
|
<span id="p-price">$80</span><span class="mo">/mo</span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user