forked from Github-Mirrors/canaille
feat: use flask-babel to format the number of consents
This commit is contained in:
parent
f0fe9c2fb5
commit
9dac4185b9
2 changed files with 4 additions and 4 deletions
|
@ -8,12 +8,12 @@
|
||||||
<a class="active item" href="{{ url_for('oidc.consents.consents') }}">
|
<a class="active item" href="{{ url_for('oidc.consents.consents') }}">
|
||||||
<i class="handshake icon"></i>
|
<i class="handshake icon"></i>
|
||||||
{% trans %}My consents{% endtrans %}
|
{% trans %}My consents{% endtrans %}
|
||||||
{% if nb_consents %}<div class="ui mini label">{{ nb_consents }}</div>{% endif %}
|
{% if nb_consents %}<div class="ui mini label">{{ nb_consents|numberformat }}</div>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
<a class="item" href="{{ url_for('oidc.consents.pre_consents') }}">
|
<a class="item" href="{{ url_for('oidc.consents.pre_consents') }}">
|
||||||
<i class="stamp icon"></i>
|
<i class="stamp icon"></i>
|
||||||
{% trans %}Pre-authorized applications{% endtrans %}
|
{% trans %}Pre-authorized applications{% endtrans %}
|
||||||
{% if nb_preconsents %}<div class="ui mini label">{{ nb_preconsents }}</div>{% endif %}
|
{% if nb_preconsents %}<div class="ui mini label">{{ nb_preconsents|numberformat }}</div>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
<a class="item" href="{{ url_for('oidc.consents.consents') }}">
|
<a class="item" href="{{ url_for('oidc.consents.consents') }}">
|
||||||
<i class="handshake icon"></i>
|
<i class="handshake icon"></i>
|
||||||
{% trans %}My consents{% endtrans %}
|
{% trans %}My consents{% endtrans %}
|
||||||
{% if nb_consents %}<div class="ui mini label">{{ nb_consents }}</div>{% endif %}
|
{% if nb_consents %}<div class="ui mini label">{{ nb_consents|numberformat }}</div>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
<a class="active item" href="{{ url_for('oidc.consents.pre_consents') }}">
|
<a class="active item" href="{{ url_for('oidc.consents.pre_consents') }}">
|
||||||
<i class="stamp icon"></i>
|
<i class="stamp icon"></i>
|
||||||
{% trans %}Pre-authorized applications{% endtrans %}
|
{% trans %}Pre-authorized applications{% endtrans %}
|
||||||
{% if nb_preconsents %}<div class="ui mini label">{{ nb_preconsents }}</div>{% endif %}
|
{% if nb_preconsents %}<div class="ui mini label">{{ nb_preconsents|numberformat }}</div>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue