Display user amount without the account page

This commit is contained in:
Skia 2016-08-31 03:25:26 +02:00
parent f66b999f24
commit 4a29a431af

View File

@ -15,7 +15,7 @@
{% if profile.customer and (profile == request.user
or request.user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name'])
or request.user.is_root) %}
<a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Account{% endtrans %}</a>
<a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Account{% endtrans %} ({{ profile.customer.amount }}€)</a>
{% endif %}
</div>
</div>