2021-03-29 17:21:48 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
|
|
|
|
{% block title %}{% blocktrans with book_title=work.title %}Editions of {{ book_title }}{% endblocktrans %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="block">
|
|
|
|
<h1 class="title">{% blocktrans with work_path=work.local_path work_title=work.title %}Editions of <a href="{{ work_path }}">"{{ work_title }}"</a>{% endblocktrans %}</h1>
|
2021-03-29 17:58:35 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include 'book/edition_filters.html' %}
|
2021-03-29 17:21:48 +00:00
|
|
|
|
2021-03-29 17:58:35 +00:00
|
|
|
<div class="block">
|
2021-03-29 17:21:48 +00:00
|
|
|
{% for book in editions %}
|
2021-04-26 11:39:17 +00:00
|
|
|
<div class="columns is-gapless mb-6">
|
2021-04-27 12:58:30 +00:00
|
|
|
<div class="column is-cover">
|
2021-04-28 13:08:58 +00:00
|
|
|
<a href="/book/{{ book.id }}">
|
|
|
|
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-m is-h-m align to-l-mobile' %}
|
|
|
|
</a>
|
2021-03-29 17:21:48 +00:00
|
|
|
</div>
|
2021-04-26 11:39:17 +00:00
|
|
|
|
2021-04-27 12:58:30 +00:00
|
|
|
<div class="column my-3-mobile ml-3-tablet mr-auto">
|
2021-04-26 11:39:17 +00:00
|
|
|
<h2 class="title is-5 mb-1">
|
2021-03-29 17:21:48 +00:00
|
|
|
<a href="/book/{{ book.id }}" class="has-text-black">
|
|
|
|
{{ book.title }}
|
|
|
|
</a>
|
|
|
|
</h2>
|
2021-04-18 13:59:02 +00:00
|
|
|
|
|
|
|
{% with book=book %}
|
2021-04-27 12:58:30 +00:00
|
|
|
<div class="columns is-multiline is-gapless ml-3-tablet">
|
2021-04-18 16:24:32 +00:00
|
|
|
<div class="column is-half">
|
2021-04-18 13:59:02 +00:00
|
|
|
{% include 'book/publisher_info.html' %}
|
|
|
|
</div>
|
|
|
|
|
2021-04-26 11:39:17 +00:00
|
|
|
<div class="column ml-3-tablet">
|
2021-04-18 13:59:02 +00:00
|
|
|
{% include 'book/book_identifiers.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endwith %}
|
2021-03-29 17:21:48 +00:00
|
|
|
</div>
|
2021-04-26 11:39:17 +00:00
|
|
|
|
|
|
|
<div class="column is-narrow">
|
2021-03-29 17:21:48 +00:00
|
|
|
{% include 'snippets/shelve_button/shelve_button.html' with book=book switch_mode=True %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-03-29 19:13:05 +00:00
|
|
|
|
|
|
|
<div>
|
|
|
|
{% include 'snippets/pagination.html' with page=editions path=request.path %}
|
|
|
|
</div>
|
2021-03-29 17:21:48 +00:00
|
|
|
{% endblock %}
|
2021-05-04 15:54:53 +00:00
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{% include 'snippets/datepicker_js.html' %}
|
|
|
|
{% endblock %}
|