From b27ffc0582f950e976ffbb10b72b300fc1b74cbd Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Mon, 12 Feb 2024 08:41:15 +0000 Subject: [PATCH] Fix #1301 use of colour to differentiate subscription statuses on subscriber list page --- .../admin/templates/admin/subscribers.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/subscribie/blueprints/admin/templates/admin/subscribers.html b/subscribie/blueprints/admin/templates/admin/subscribers.html index bdcca11a..119214cf 100644 --- a/subscribie/blueprints/admin/templates/admin/subscribers.html +++ b/subscribie/blueprints/admin/templates/admin/subscribers.html @@ -108,7 +108,7 @@

Search...

{% endif %}
  • Subscription ID: {{ subscription.uuid }}
  • -
  • Date started: {{ subscription.created_at.strftime('%Y-%m-%d') }}
  • +
  • Date started: {{ subscription.created_at.strftime('%d-%m-%Y') }}
  • {% if subscription.plan.requirements and subscription.plan.requirements.subscription %} Price: @@ -128,12 +128,18 @@

    Search...

  • Status: {% if subscription.plan.requirements and subscription.plan.requirements.subscription %} {% if subscription.stripe_pause_collection == "void" %} - Paused +
    Paused
    + {% elif subscription.stripe_status == "canceled" %} +
    Canceled
    + {% elif subscription.stripe_status == 'active' %} +
    Active
    + {% elif subscription.stripe_status == 'past_due' %} +
    past_due
    {% else %} - {{ subscription.stripe_status }} +
    {{ subscription.stripe_status }}
    {% endif %} {% else %} - Paid +
    Paid
    {% endif %}
  • {% if subscription.stripe_status == 'canceled' %}