diff --git a/hc/payments/views.py b/hc/payments/views.py index 03a2cc09..6c17743f 100644 --- a/hc/payments/views.py +++ b/hc/payments/views.py @@ -1,4 +1,3 @@ -from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import Http404, HttpResponseBadRequest, JsonResponse @@ -33,12 +32,7 @@ def pricing(request, code=None): # subscription object is not created just by viewing a page. sub = Subscription.objects.filter(user_id=request.user.id).first() - ctx = { - "page": "pricing", - "project": project, - "sub": sub, - "enable_whatsapp": settings.TWILIO_USE_WHATSAPP, - } + ctx = {"page": "pricing", "project": project, "sub": sub} return render(request, "payments/pricing.html", ctx) diff --git a/static/css/pricing.css b/static/css/pricing.css index 53f3a1f7..72e14b14 100644 --- a/static/css/pricing.css +++ b/static/css/pricing.css @@ -56,6 +56,10 @@ border-color: #22bc66; } +.plan .list-group-item { + padding: 10px 8px; +} + .plan .list-group-item:last-child { border-bottom: 0; @@ -100,3 +104,12 @@ margin: 10px 0; color: #AAA; } + +.page-pricing span[data-help] { + border-bottom: 1px dashed #888; + cursor: help; +} + +.page-pricing .tooltip-inner { + text-align: left; +} \ No newline at end of file diff --git a/static/js/pricing.js b/static/js/pricing.js index 6c17514a..aaffdc77 100644 --- a/static/js/pricing.js +++ b/static/js/pricing.js @@ -12,4 +12,11 @@ $(function () { $("#business-plus-price").text("$64"); } }); + + $('[data-help]').tooltip({ + html: true, + title: function() { + return $("#" + this.dataset.help).html(); + } + }); }); \ No newline at end of file diff --git a/templates/payments/pricing.html b/templates/payments/pricing.html index 05baa282..4248b471 100644 --- a/templates/payments/pricing.html +++ b/templates/payments/pricing.html @@ -41,7 +41,7 @@ {% else %}
- We accept Visa, Master Card and PayPal. + We accept Visa, Master Card, American Express and PayPal.
+ Both plans are similar. The "Supporter" plan is offered + in case "Hobbyist" fits your usage but you wish + to support {% site_name %} financially. +
+ +Invite your colleagues to your account so they can access your checks, @@ -225,10 +259,6 @@ is more convenient and more secure than sharing a single login and password.
-- Each plan has a specific team size limit. When you reach - the limit, you cannot invite more team members. -
@@ -239,8 +269,8 @@
There is a per-check limit of how many log entries are kept. When this limit is reached, the oldest log entries - are culled. You can increase the limit by upgrading to - paid plans. + start getting removed to make room for new ones. + You can increase the limit by upgrading to paid plans.
The maximum number of SMS & WhatsApp notifications per month.
+ +The limit is applied to the combined number of sent SMS and + WhatsApp notifications.
+