<li><adata-toggle="tab"href="#auth">{% trans "Authentication" %}</a></li>
<li><adata-toggle="tab"href="#auth">{% trans "Authentication" %}</a></li>
<li><adata-toggle="tab"href="#profile">{% trans "Profile" %}</a></li>
<li><adata-toggle="tab"href="#profile">{% trans "Profile" %}</a></li>
<li><adata-toggle="tab"href="#licenses">{% trans "Licenses" %}</a></li>
<li><adata-toggle="tab"href="#licenses">{% trans "Licenses" %}</a></li>
{% if user.billing %}
<li><adata-toggle="tab"href="#billing">{% trans "Billing" %}</a></li>
{% endif %}
</ul>
</ul>
<divclass="tab-content">
<divclass="tab-content">
...
@@ -333,6 +336,66 @@
...
@@ -333,6 +336,66 @@
</div>
</div>
</div>
</div>
{% if user.billing %}
{% with user.billing as billing %}
<divclass="tab-pane"id="billing">
<divclass="row">
<divclass="col-lg-6">
<divclass="panel panel-primary">
<divclass="panel-heading"><h4class="panel-title">{% trans "Billing plan" %}</h4></div>
<divclass="panel-body">
{% with billing.plan as plan %}
<tableclass="table">
<tr><th>{% trans "Current plan" %}</th><td>{{ plan.name }}</td></tr>
<tr><th>{% trans "Monthly price" %}</th><td>{{ plan.price }} EUR</td></tr>
<tr><th>{% trans "Yearly price" %}</th><td>{{ plan.yearly_price }} EUR</td></tr>
<tr><th>{% trans "Strings limit" %}</th><td>{% blocktrans with plan.display_limit_strings as total and billing.count_strings as used %}Used {{ used }} from {{ total }}{% endblocktrans %}</td></tr>
<tr><th>{% trans "Languages limit" %}</th><td>{% blocktrans with plan.display_limit_languages as total and billing.count_languages as used %}Used {{ used }} from {{ total }}{% endblocktrans %}</td></tr>
<tr><th>{% trans "Repositories limit" %}</th><td>{% blocktrans with plan.display_limit_repositories as total and billing.count_repositories as used %}Used {{ used }} from {{ total }}{% endblocktrans %}</td></tr>
<tr><th>{% trans "Projects limit" %}</th><td>{% blocktrans with plan.display_limit_projects as total and billing.projects.count as used %}Used {{ used }} from {{ total }}{% endblocktrans %}</td></tr>
</table>
{% endwith %}
</div>
</div>
</div>
<divclass="col-lg-6">
<divclass="panel panel-primary">
<divclass="panel-heading"><h4class="panel-title">{% trans "Invoices" %}</h4></div>