2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-04-24 10:56:38 +00:00
|
|
|
<div class="columns is-mobile is-gapless">
|
2021-04-27 12:58:30 +00:00
|
|
|
<div class="column is-cover">
|
|
|
|
{% include 'snippets/book_cover.html' with book=result cover_class='is-w-xs is-h-xs' img_path=false %}
|
|
|
|
</div>
|
2021-03-13 21:55:20 +00:00
|
|
|
|
2021-04-24 10:56:38 +00:00
|
|
|
<div class="column is-10 ml-3">
|
2021-03-13 21:55:20 +00:00
|
|
|
<p>
|
|
|
|
<strong>
|
2021-04-24 10:56:38 +00:00
|
|
|
<a
|
|
|
|
href="{{ result.key }}"
|
|
|
|
|
|
|
|
{% if remote_result %}
|
|
|
|
rel=”noopener”
|
|
|
|
target="_blank"
|
|
|
|
{% endif %}
|
|
|
|
>{{ result.title }}</a>
|
2021-03-13 21:55:20 +00:00
|
|
|
</strong>
|
2021-04-24 10:56:38 +00:00
|
|
|
|
2021-03-13 21:55:20 +00:00
|
|
|
{% if result.author %}
|
2021-04-24 10:56:38 +00:00
|
|
|
{% blocktrans with author=result.author %}by {{ author }}{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if result.year %}
|
|
|
|
({{ result.year }})
|
2021-03-13 21:55:20 +00:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% if remote_result %}
|
2021-04-24 10:56:38 +00:00
|
|
|
<form class="mt-1" action="/resolve-book" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
|
|
|
|
<input type="hidden" name="remote_id" value="{{ result.key }}">
|
|
|
|
|
|
|
|
<button type="submit" class="button is-small is-link">
|
|
|
|
{% trans "Import book" %}
|
|
|
|
</button>
|
|
|
|
</form>
|
2021-03-13 21:55:20 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|