Skip to content

Commit

Permalink
intcomma for doc counts
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jul 16, 2024
1 parent a9a96c3 commit 765405c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions peachjam/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.humanize",
"django.contrib.messages",
"django.contrib.sites",
"django.contrib.staticfiles",
Expand Down
8 changes: 4 additions & 4 deletions peachjam/templates/peachjam/_document_count.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% load i18n %}
{% load i18n humanize %}
<div class="text-muted mb-2">
{% blocktrans trimmed count doc_count=doc_count %}
{{ doc_count }} document
{% blocktrans trimmed with n_docs=doc_count|intcomma count counter=doc_count %}
{{ n_docs }} document
{% plural %}
{{ doc_count }} documents
{{ n_docs }} documents
{% endblocktrans %}
</div>

0 comments on commit 765405c

Please sign in to comment.