{% load humanize i18n icons permissions translations %} {% perm 'billing.manage' billing as user_can_manage_billing %} {% with plan=billing.plan %} {% if billing.expiry %} {% endif %} {% if billing.removal %} {% endif %} {% if plan.display_limit_hosted_strings %} {% include "billing/used.html" with max=plan.limit_hosted_strings total=plan.display_limit_hosted_strings used=billing.count_hosted_strings %} {% endif %} {% if plan.display_limit_strings %} {% include "billing/used.html" with max=plan.limit_strings total=plan.display_limit_strings used=billing.count_strings %} {% endif %} {% if plan.display_limit_languages %} {% include "billing/used.html" with max=plan.limit_languages total=plan.display_limit_languages used=billing.count_languages %} {% endif %} {% if plan.display_limit_project %} {% include "billing/used.html" with max=plan.limit_projects total=plan.display_limit_projects used=billing.all_projects|length %} {% endif %} {% if billing.all_projects %} {% else %} {% endif %} {% if user_can_manage_billing %} {% endif %}
{% translate "Current plan" %} {{ plan.name }} ({{ billing.get_state_display }}) {% if payment_enabled and billing.can_be_paid %} {% translate "Change plan" %} {% endif %}
{% translate "Trial expiry date" %} {{ billing.expiry|naturaltime }} {% if user_can_manage_billing %} {% translate "Extend trial" %} {% endif %}
{% translate "Scheduled removal" %} {{ billing.removal|naturaltime }} {% if user_can_manage_billing %} {% translate "Extend trial" %} {% endif %}
{% translate "Monthly price" %} {{ plan.price|intcomma }} EUR {% if payment_enabled and billing.can_be_paid and plan.price %}
{% csrf_token %}
{% endif %}
{% translate "Yearly price" %} {{ plan.yearly_price|intcomma }} EUR {% if payment_enabled and billing.can_be_paid and plan.yearly_price %}
{% csrf_token %}
{% endif %}
{% translate "Hosted strings limit" %}
{% translate "Strings limit" %}
{% translate "Languages limit" %}
{% translate "Projects limit" %}
{% translate "Last invoice" %} {{ billing.last_invoice }}
{% include "snippets/list-objects.html" with objects=billing.all_projects hide_details=1 %}
{% translate "Projects" %} {% translate "No projects currently assigned!" %} {% if billing.is_active %} {% translate "Add new translation project" %} {% endif %}
{% translate "Owners" %} {% for owner in billing.owners.all %}

{% icon "account.svg" %} {{ owner }} @{{ owner.username }} {{ owner.email }} {% if user_can_manage_billing %} {% translate "Check user access" %} {% endif %}

{% endfor %}
{% endwith %}