mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 11:00:36 +00:00
43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
{% extends 'layout.html' %}
|
|
{% load fr_display %}
|
|
{% block content %}
|
|
<div id="content">
|
|
<div>
|
|
<div class="book-preview">
|
|
{% include 'snippets/book.html' with book=book size=large rating=rating description=True shelf_pulldown=True %}
|
|
</div>
|
|
<div id="tag-cloud">
|
|
{% for tag in tags %}
|
|
{% include 'snippets/tag.html' with tag=tag user=request.user %}
|
|
{% endfor %}
|
|
</div>
|
|
<form class="tag-form" name="tag" action="/tag/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="book" value="{{ book.openlibrary_key }}"></input>
|
|
{{ tag_form.as_p }}
|
|
<button type="submit">Add tag</button>
|
|
</form>
|
|
</div>
|
|
<div class="reviews">
|
|
<h2>Reviews</h2>
|
|
{% if not reviews %}
|
|
<p>No reviews yet!</p>
|
|
{% endif %}
|
|
<form class="review-form" name="review" action="/review/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="book" value="{{ book.openlibrary_key }}"></input>
|
|
{{ review_form.as_p }}
|
|
<button type="submit">Post review</button>
|
|
</form>
|
|
{% for review in reviews %}
|
|
<div class="review">
|
|
<h4>{{ review.name }}
|
|
<small>{{ review.rating | stars }} stars, by {% include 'snippets/username.html' with user=review.user %}</small>
|
|
</h4>
|
|
<blockquote>{{ review.content }}</blockquote>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|