forked from mirrors/bookwyrm
Merge pull request #1506 from Tak/display-half-stars-when-federating
Display half-stars in generated statuses for federation
This commit is contained in:
commit
46bfc2b2a2
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{% load i18n %}{% load humanize %}{% load utilities %}
|
{% load i18n %}{% load humanize %}{% load utilities %}
|
||||||
|
|
||||||
{% blocktrans trimmed with title=book|book_title path=book.remote_id display_rating=rating|floatformat:"0" count counter=rating|add:0 %}
|
{% blocktrans trimmed with title=book|book_title path=book.remote_id display_rating=rating|floatformat:"-1" count counter=rating|add:0 %}
|
||||||
rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ display_rating }} star
|
rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ display_rating }} star
|
||||||
{% plural %}
|
{% plural %}
|
||||||
rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ display_rating }} stars
|
rated <em><a href="{{ path }}">{{ title }}</a></em>: {{ display_rating }} stars
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% if rating %}
|
{% if rating %}
|
||||||
|
|
||||||
{% blocktrans with book_title=book.title|safe display_rating=rating|floatformat:"0" 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 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 %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue