{% extends "base.html" %}
{% load i18n %}

{% block breadcrumbs %}
<li><a href="{% url 'profile' %}">{% trans "Your profile" %}</a></li>
<li><a href="{% url 'billing' %}">{% trans "Billing" %}</a></li>
{% endblock %}

{% block content %}

{% for billing in billings %}
{% include "billing/detail.html" %}
{% empty %}
<p>
    {% trans "No subscriptions or due payments." %}
    {% trans "In case you miss access to billing of your project, please contact project maintainers to give you permission to access its billing." %}
</p>

{% if offer_hosting %}
<a class="btn btn-primary" href="https://weblate.org/hosting/">{% trans "View hosting plans" %}</a>
{% endif %}
{% endfor %}
{% if payment_enabled and not active_billing_count %}
<a href="{% url 'create-billing' %}?upgrade=1" class="btn btn-primary">{% trans "Purchase new hosting plan" %}</a>
{% endif %}

{% endblock %}
