{% load i18n %} {% load translations %}

{% trans "Billing plan" %}

{% with billing.plan as plan %} {% with plan.limit_strings as max and plan.display_limit_strings as total and billing.count_strings as used %} {% include "billing/used.html" %} {% endwith %} {% with plan.limit_languages as max and plan.display_limit_languages as total and billing.count_languages as used %} {% include "billing/used.html" %} {% endwith %} {% with plan.limit_repositories as max and plan.display_limit_repositories as total and billing.count_repositories as used %} {% include "billing/used.html" %} {% endwith %} {% with plan.limit_projects as max and plan.display_limit_projects as total and billing.projects.count as used %} {% include "billing/used.html" %} {% endwith %}
{% trans "Current plan" %}{{ plan.name }} ({{ billing.get_state_display }}{% if billing.trial_expiry %}{% blocktrans with expires=billing.trial_expiry|naturaltime %}, expires {{ expires }}{% endblocktrans %}{% endif %}){% trans "See other plans" %}
{% trans "Monthly price" %}{{ plan.price }} EUR
{% trans "Yearly price" %}{{ plan.yearly_price }} EUR
{% trans "Strings limit" %}
{% trans "Languages limit" %}
{% trans "Repositories limit" %}
{% trans "Projects limit" %}
{% trans "Projects" %}
{% for project in billing.projects.all %} {{ project }} {% empty %} {% trans "No projects currently assigned!" as msg %} {% show_message "warning" msg %} {% trans "Add new translation project" %} {% endfor %}
{% endwith %}

{% trans "Invoices" %}

{% for invoice in billing.invoice_set.all %} {% empty %} {% endfor %}
{% trans "Invoice period" %} {% trans "Invoice amount" %} {% trans "Download invoice" %}
{{ invoice.start|date:"SHORT_DATE_FORMAT" }} - {{ invoice.end|date:"SHORT_DATE_FORMAT" }} {{ invoice.payment }} {{ invoice.get_currency_display }} {% if invoice.ref %} {{ invoice.filename }} {% else %} {% trans "Not available" %} {% endif %}
{% trans "No invoices found!" %}