bookwyrm/fedireads/templates/book_results.html
Mouse Reeve 2fd7792f34 Remove fedireads_key field
we have ID
2020-05-03 18:12:29 -07:00

21 lines
754 B
HTML

{% extends 'layout.html' %}
{% block content %}
<div class="content-container">
<h2>Search results</h2>
{% for result_set in results %}
<section>
{% if not result_set.connector.local %}
<h3>
Results from <a href="{{ result_set.connector.base_url }}" target="_blank">{{ result_set.connector.name }}</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>
{% endfor %}
</div>
{% endblock %}