Render rating status from template
This commit is contained in:
parent
a75e4a7404
commit
aa2950daf3
2 changed files with 8 additions and 1 deletions
5
bookwyrm/templates/snippets/generated_status/rating.html
Normal file
5
bookwyrm/templates/snippets/generated_status/rating.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue