{% extends "base.html" %} {% block title %}{{ _('My billing') }}{% endblock %} {% block content %}

{{ _('Billing') }}

{{ _('Current plan') }}

{{ plan.name if plan else _('Free') }} {% if sub and sub.is_active %} {{ sub.status }} {% if sub.current_period_end %} {{ _('Renews') if not sub.cancel_at_period_end else _('Ends') }} {{ sub.current_period_end.strftime('%b %d, %Y') }} {% endif %} {% if sub.cancel_at_period_end %} {{ _('Canceling') }} {% endif %} {% endif %}
{% if stripe_enabled %} {% if sub and sub.stripe_customer_id %} {{ _('Manage subscription') }} {% else %} {{ _('Upgrade plan') }} {% endif %} {% endif %}
{% if active_boosts %}

{{ _('Active boosts') }}

{% for b in active_boosts %} {% endfor %}
{{ b.listing.title[:50] }} {{ b.type }} {{ _('Expires') }} {{ b.expires_at.strftime('%b %d, %Y') }}
{% endif %}

{{ _('Transaction history') }}

{% if not txns %}

{{ _('No transactions yet.') }}

{% else %} {% for t in txns %} {% endfor %}
{{ _('Date') }}{{ _('Type') }}{{ _('Amount') }}{{ _('Status') }}
{{ t.created_at.strftime('%b %d, %Y') }} {{ t.type }} ${{ "%.2f"|format(t.amount_cents / 100) }} {{ t.status }}
{% endif %}
{% endblock %}