Render rating status from template

This commit is contained in:
Mouse Reeve
2021-03-13 18:24:35 -08:00
parent a75e4a7404
commit aa2950daf3
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
{% load i18n %}{% load humanize %}{{% spaceless %}
{% blocktrans with title=book.title path=book.local_path rating=rating %}Rated <em><a href="{{ path }}">{{ title }}</a> </em>: {{ rating }} stars{% endblocktrans %}
{% endspaceless %}