openlibrary search
This commit is contained in:
13
fedireads/templates/book_results.html
Normal file
13
fedireads/templates/book_results.html
Normal file
@ -0,0 +1,13 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div id="content">
|
||||
<div>
|
||||
<h1>Search results</h1>
|
||||
{% for result in results %}
|
||||
<div>
|
||||
<a href="/work/{{ result.olkey }}">{{ result.title }}</a> by {{ result.author }} ({{ result.year }})
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@ -82,6 +82,7 @@
|
||||
<a href="{{ activity.book.openlibrary_key }}">{{ activity.book.data.title }}</a>
|
||||
by
|
||||
<a href="" class="author">{{ activity.book.authors.first.data.name }}</a>
|
||||
<blockquote>{{ book.data.description }}</blockquote>
|
||||
</p>
|
||||
</div>
|
||||
{% elif activity.fedireads_type == 'Review' %}
|
||||
@ -94,6 +95,7 @@
|
||||
<a href="{{ activity.book.openlibrary_key }}">{{ activity.book.data.title }}</a>
|
||||
by
|
||||
<a href="" class="author">{{ activity.book.authors.first.data.name }}</a>
|
||||
<blockquote>{{ book.data.description }}</blockquote>
|
||||
</p>
|
||||
|
||||
<h3>{{ activity.name }}</h3>
|
||||
|
Reference in New Issue
Block a user