mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-05 16:39:42 +00:00
23 lines
894 B
HTML
23 lines
894 B
HTML
{% extends 'layout.html' %}
|
|
{% block content %}
|
|
<div class="content-container">
|
|
<h2>Search results</h2>
|
|
{% for result_set in results %}
|
|
{% if result_set.results %}
|
|
<section>
|
|
{% if not result_set.connector.local %}
|
|
<h3>
|
|
Results from <a href="{{ result_set.connector.base_url }}" target="_blank">{% if result_set.connector.name %}{{ result_set.connector.name }}{% else %}{{ result_set.connector.identifier }}{% endif %}</a>
|
|
</h3>
|
|
{% endif %}
|
|
|
|
{% for result in result_set.results %}
|
|
<div>
|
|
<a href="/book/{% if not result_set.connector.local %}{{ result_set.connector.id }}:{{ result_set.connector.key_name}}:{% endif %}{{ result.key }}">{{ result.title }}</a> by {{ result.author }} ({{ result.year }})
|
|
</div>
|
|
{% endfor %}
|
|
</section>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|