Skip to content

Commit

Permalink
feat: use flask-babel to format the number of consents
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Mar 27, 2024
1 parent f0fe9c2 commit 9dac418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions canaille/oidc/templates/consent_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<a class="active item" href="{{ url_for('oidc.consents.consents') }}">
<i class="handshake icon"></i>
{% 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 class="item" href="{{ url_for('oidc.consents.pre_consents') }}">
<i class="stamp icon"></i>
{% 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>
{% endblock %}

Expand Down
4 changes: 2 additions & 2 deletions canaille/oidc/templates/preconsent_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<a class="item" href="{{ url_for('oidc.consents.consents') }}">
<i class="handshake icon"></i>
{% 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 class="active item" href="{{ url_for('oidc.consents.pre_consents') }}">
<i class="stamp icon"></i>
{% 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>
{% endblock %}

Expand Down

0 comments on commit 9dac418

Please sign in to comment.