diff --git a/bookwyrm/templates/snippets/page_text.html b/bookwyrm/templates/snippets/page_text.html new file mode 100644 index 00000000..dc7a6a33 --- /dev/null +++ b/bookwyrm/templates/snippets/page_text.html @@ -0,0 +1,7 @@ +{% load humanize %} +{% load i18n %} +{% if total_pages %} +{% blocktrans with page=page|intcomma total_pages=total_pages|intcomma %}page {{ page }} of {{ total_pages }}{% endblocktrans %} +{% else %} +{% blocktrans with page=page|intcomma %}page {{ page }}{% endblocktrans %} +{% endif %} diff --git a/bookwyrm/templates/snippets/readthrough.html b/bookwyrm/templates/snippets/readthrough.html index 3e694f61..76611862 100644 --- a/bookwyrm/templates/snippets/readthrough.html +++ b/bookwyrm/templates/snippets/readthrough.html @@ -9,8 +9,18 @@