Members page: show a live total member count
Count every membership account (free and paid together) on each page load and show it under the headline; no per-tier numbers. Hidden when there are no members. Also correct the reference tiers.eom.json and service-groups.eom.json to the real LDAP DNs (ou=Memberships; ou=<Service>,ou=Services), which now match the ansible-role-www defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,9 @@ def home(request):
|
||||
# Presentation copies only: never mutate authorization/payment settings.
|
||||
tiers = settings.MEMBERSHIP_TIERS
|
||||
services = service_access_catalog(tiers, settings.MEMBERSHIP_SERVICE_GROUPS)
|
||||
return page(request, account=account, tiers=tiers, services=services, subscriptions=subscriptions, crypto_invoices=invoices, shkeeper_enabled=settings.SHKEEPER_ENABLED, now=timezone.now())
|
||||
# Public total across every level (free and paid); never a per-tier breakdown.
|
||||
member_count = Account.objects.count()
|
||||
return page(request, account=account, tiers=tiers, services=services, subscriptions=subscriptions, crypto_invoices=invoices, shkeeper_enabled=settings.SHKEEPER_ENABLED, now=timezone.now(), member_count=member_count)
|
||||
|
||||
|
||||
@require_http_methods(["GET", "POST"])
|
||||
|
||||
Reference in New Issue
Block a user