mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-17 11:35:17 +00:00
Moved reviews into center column on books page
This commit is contained in:
parent
57454afa42
commit
900e7feb1b
1 changed files with 76 additions and 76 deletions
|
@ -193,64 +193,6 @@
|
||||||
{% include 'snippets/create_status.html' with book=book hide_cover=True %}
|
{% include 'snippets/create_status.html' with book=book hide_cover=True %}
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
<div class="column is-one-fifth">
|
|
||||||
{% if book.subjects %}
|
|
||||||
<section class="content block">
|
|
||||||
<h2 class="title is-5">{% trans "Subjects" %}</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{% for subject in book.subjects %}
|
|
||||||
<li itemprop="about">{{ subject }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if book.subject_places %}
|
|
||||||
<section class="content block">
|
|
||||||
<h2 class="title is-5">{% trans "Places" %}</h2>
|
|
||||||
<ul>
|
|
||||||
{% for place in book.subject_places %}
|
|
||||||
<li>{{ place }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if lists.exists or request.user.list_set.exists %}
|
|
||||||
<section class="content block">
|
|
||||||
<h2 class="title is-5">{% trans "Lists" %}</h2>
|
|
||||||
<ul>
|
|
||||||
{% for list in lists %}
|
|
||||||
<li><a href="{{ list.local_path }}">{{ list.name }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{% if request.user.list_set.exists %}
|
|
||||||
<form name="list-add" method="post" action="{% url 'list-add-book' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
<input type="hidden" name="book" value="{{ book.id }}">
|
|
||||||
<label class="label" for="id_list">{% trans "Add to list" %}</label>
|
|
||||||
<div class="field has-addons">
|
|
||||||
<div class="select control">
|
|
||||||
<select name="list" id="id_list">
|
|
||||||
{% for list in user.list_set.all %}
|
|
||||||
<option value="{{ list.id }}">{{ list.name }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<button type="submit" class="button is-link">{% trans "Add" %}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="block" id="reviews">
|
<div class="block" id="reviews">
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
{% if user_statuses.review_count or user_statuses.comment_count or user_stuatses.quotation_count %}
|
{% if user_statuses.review_count or user_statuses.comment_count or user_stuatses.quotation_count %}
|
||||||
|
@ -327,6 +269,64 @@
|
||||||
{% include 'snippets/pagination.html' with page=statuses path=request.path anchor="#reviews" %}
|
{% include 'snippets/pagination.html' with page=statuses path=request.path anchor="#reviews" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="column is-one-fifth">
|
||||||
|
{% if book.subjects %}
|
||||||
|
<section class="content block">
|
||||||
|
<h2 class="title is-5">{% trans "Subjects" %}</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for subject in book.subjects %}
|
||||||
|
<li itemprop="about">{{ subject }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if book.subject_places %}
|
||||||
|
<section class="content block">
|
||||||
|
<h2 class="title is-5">{% trans "Places" %}</h2>
|
||||||
|
<ul>
|
||||||
|
{% for place in book.subject_places %}
|
||||||
|
<li>{{ place }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if lists.exists or request.user.list_set.exists %}
|
||||||
|
<section class="content block">
|
||||||
|
<h2 class="title is-5">{% trans "Lists" %}</h2>
|
||||||
|
<ul>
|
||||||
|
{% for list in lists %}
|
||||||
|
<li><a href="{{ list.local_path }}">{{ list.name }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{% if request.user.list_set.exists %}
|
||||||
|
<form name="list-add" method="post" action="{% url 'list-add-book' %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input type="hidden" name="book" value="{{ book.id }}">
|
||||||
|
<label class="label" for="id_list">{% trans "Add to list" %}</label>
|
||||||
|
<div class="field has-addons">
|
||||||
|
<div class="select control">
|
||||||
|
<select name="list" id="id_list">
|
||||||
|
{% for list in user.list_set.all %}
|
||||||
|
<option value="{{ list.id }}">{{ list.name }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<button type="submit" class="button is-link">{% trans "Add" %}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue