mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-16 07:23:04 +00:00
698e74a496
* Remove duplicate Review object under `rating` property This was preventing validation, since `rating` is not a valid property (`review` is, which is created from book.html already). * Drop `bestRating` property in ratings, since it defaults to 5 See <https://schema.org/bestRating> ("If bestRating is omitted, 5 is assumed"). * Create Rating object (and its enclosing Review) in book/rating.html * Use `position` property for Book objects in a series `volumeNumber`, previously used, is only valid for objects of type PublicationVolume (which series members are not). * Give URL of book series when setting of `isPartOf` * series.html: Add empty BookSeries object --------- Co-authored-by: Adeodato Simó <dato@users.noreply.github.com>
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
{% load i18n %}{% load status_display %}
|
|
<div class="block mr-5">
|
|
<div class="media">
|
|
<div class="media-left">
|
|
{% include 'snippets/avatar.html' with user=user %}
|
|
</div>
|
|
|
|
<div class="media-content" itemprop="review" itemscope itemtype="https://schema.org/Review">
|
|
<div itemprop="author"
|
|
itemscope
|
|
itemtype="https://schema.org/Person"
|
|
>
|
|
<a href="{{ user.local_path }}" itemprop="url">
|
|
<span itemprop="name">{{ user.display_name }}</span>
|
|
</a>
|
|
</div>
|
|
<div class="is-flex" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
|
|
<meta itemprop="ratingValue" content="{{ rating.rating|floatformat }}">
|
|
<p class="mr-1">{% trans "rated it" %}</p>
|
|
{% include 'snippets/stars.html' with rating=rating.rating %}
|
|
</div>
|
|
<div>
|
|
<a href="{{ rating.remote_id }}">{{ rating.published_date|published_date }}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|