forked from mirrors/bookwyrm
8ddc292ee6
- Work on feeds. - Add `.is-cover` to modify the behaviours of columns. - Only apply logic for dimensions on the cover container; too many contextual side effects otherwise. - Add classes to dimension and align, including auto margins for flex. - Rename classes in templates accordingly.
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{% load i18n %}
|
|
<div class="columns is-mobile is-gapless">
|
|
<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>
|
|
|
|
<div class="column is-10 ml-3">
|
|
<p>
|
|
<strong>
|
|
<a
|
|
href="{{ result.key }}"
|
|
|
|
{% if remote_result %}
|
|
rel=”noopener”
|
|
target="_blank"
|
|
{% endif %}
|
|
>{{ result.title }}</a>
|
|
</strong>
|
|
|
|
{% if result.author %}
|
|
{% blocktrans with author=result.author %}by {{ author }}{% endblocktrans %}
|
|
{% endif %}
|
|
|
|
{% if result.year %}
|
|
({{ result.year }})
|
|
{% endif %}
|
|
</p>
|
|
|
|
{% if remote_result %}
|
|
<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>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|