Browse Source

5 SMS & WhatsApp sends/mo for free plans

pull/307/head
Pēteris Caune 5 years ago
parent
commit
c13ec18a27
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
5 changed files with 14 additions and 15 deletions
  1. +2
    -2
      hc/accounts/models.py
  2. +1
    -1
      templates/emails/sms-limit-body-html.html
  3. +2
    -3
      templates/emails/sms-limit-body-text.html
  4. +3
    -3
      templates/front/channels.html
  5. +6
    -6
      templates/payments/pricing.html

+ 2
- 2
hc/accounts/models.py View File

@ -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)


+ 1
- 1
templates/emails/sms-limit-body-html.html View File

@ -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 %}


+ 2
- 3
templates/emails/sms-limit-body-text.html View File

@ -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:
{{ url }}{% endif %}
{% if url %}You can increase the monthly sending limit by upgrading your billing plan.
{% endif %}
-- --
Regards, Regards,


+ 3
- 3
templates/front/channels.html View File

@ -249,7 +249,7 @@
<p>High Trust Messaging for the Enterprise.</p> <p>High Trust Messaging for the Enterprise.</p>
<a href="{% url 'hc-add-mattermost' %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-mattermost' %}" class="btn btn-primary">Add Integration</a>
</li>
</li>
<li> <li>
<img src="{% static 'img/integrations/opsgenie.png' %}" <img src="{% static 'img/integrations/opsgenie.png' %}"
@ -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>


+ 6
- 6
templates/payments/pricing.html View File

@ -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">
<label class="btn btn-default active">
<input <input
type="radio" type="radio"
name="period" name="period"
value="monthly" value="monthly"
checked
autocomplete="off"> Monthly autocomplete="off"> Monthly
</label> </label>
<label class="btn btn-default active">
<label class="btn btn-default">
<input <input
type="radio" type="radio"
name="period" name="period"
value="annual" value="annual"
checked
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">&nbsp;</li>
<li class="list-group-item">5 SMS {% if enable_whatsapp %}&amp; WhatsApp{% endif %} Alerts per Month</li>
<li class="list-group-item">&nbsp;</li> <li class="list-group-item">&nbsp;</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…
Cancel
Save