forked from mirrors/bookwyrm
Link to book title in pure activitypub serialization of review
This commit is contained in:
parent
de0c50196e
commit
e452ec87d3
1 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,16 @@
|
|||
{% load i18n %}
|
||||
{% if rating %}
|
||||
|
||||
{% blocktrans with book_title=book.title|safe display_rating=rating|floatformat:"-1" review_title=name|safe count counter=rating %}Review of "{{ book_title }}" ({{ display_rating }} star): {{ review_title }}{% plural %}Review of "{{ book_title }}" ({{ display_rating }} stars): {{ review_title }}{% endblocktrans %}
|
||||
{% blocktrans trimmed with book_title=book.title|safe book_path=book.local_path display_rating=rating|floatformat:"-1" review_title=name|safe count counter=rating %}
|
||||
Review of "<a href="{{ book_path }}">{{ book_title }}</a>" ({{ display_rating }} star): {{ review_title }}
|
||||
{% plural %}
|
||||
Review of "<a href="{{ book_path }}">{{ book_title }}</a>" ({{ display_rating }} stars): {{ review_title }}
|
||||
{% endblocktrans %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% blocktrans with book_title=book.title|safe review_title=name|safe %}Review of "{{ book_title }}": {{ review_title }}{% endblocktrans %}
|
||||
{% blocktrans trimmed with book_title=book.title|safe review_title=name|safe %}
|
||||
Review of "<a href="{{ book_path }}">{{ book_title }}</a>": {{ review_title }
|
||||
{% endblocktrans %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue