1
0
Fork 0

Merge pull request #736 from mouse-reeve/rating-template

Render rating status from template
This commit is contained in:
Mouse Reeve 2021-03-15 15:42:36 -07:00 committed by GitHub
commit def834a0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,3 @@
{% load i18n %}{% load humanize %}
{% blocktrans with title=book.title path=book.remote_id rating=rating count counter=rating %}Rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ rating }} star{% plural %}Rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ rating }} stars{% endblocktrans %}