2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-03-13 21:55:20 +00:00
|
|
|
<div class="columns is-mobile">
|
|
|
|
<div class="cover-container is-small column is-2">
|
|
|
|
{% if result.cover %}
|
|
|
|
<img src="{{ result.cover }}" class="book-cover" aria-hidden="true">
|
|
|
|
{% else %}
|
|
|
|
<div class="no-cover book-cover">
|
|
|
|
<img class="book-cover" src="/static/images/no_cover.jpg" aria-hidden="true">
|
|
|
|
<div>
|
|
|
|
<p>{% trans "No cover" %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<p>
|
|
|
|
<strong>
|
2021-04-06 19:17:58 +00:00
|
|
|
<a href="{{ result.view_link|default:result.key }}"{% if remote_result %} rel=”noopener” target="_blank"{% endif %}>{{ result.title }}</a>
|
2021-03-13 21:55:20 +00:00
|
|
|
</strong>
|
2021-04-29 18:22:09 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2021-03-13 21:55:20 +00:00
|
|
|
{% if result.author %}
|
2021-04-29 18:22:09 +00:00
|
|
|
{{ result.author }}
|
|
|
|
{% endif %}
|
|
|
|
{% if result.year %}
|
|
|
|
({{ result.year }})
|
2021-03-13 21:55:20 +00:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% if remote_result %}
|
|
|
|
<form 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>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|