forked from mirrors/bookwyrm
Preview review in import preview
This commit is contained in:
parent
c245ad09bb
commit
acc32d579e
2 changed files with 31 additions and 15 deletions
|
@ -84,6 +84,9 @@
|
|||
<th>
|
||||
{% trans "Author" %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans "Review" %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans "Book" %}
|
||||
</th>
|
||||
|
@ -107,6 +110,10 @@
|
|||
<td>
|
||||
{{ item.normalized_data.authors }}
|
||||
</td>
|
||||
<td>
|
||||
<p>{% include 'snippets/stars.html' with rating=item.rating %}</p>
|
||||
<p>{{ item.review|truncatechars:100 }}</p>
|
||||
</td>
|
||||
<td>
|
||||
{% if item.book %}
|
||||
<a href="{{ item.book.local_path }}">
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
<th>
|
||||
{% trans "Author" %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans "Review" %}
|
||||
</th>
|
||||
<th>
|
||||
{% trans "Actions" %}
|
||||
</th>
|
||||
|
@ -52,7 +55,12 @@
|
|||
<td>
|
||||
{{ item.normalized_data.authors }}
|
||||
</td>
|
||||
<td class="content is-flex">
|
||||
<td>
|
||||
<p>{% include 'snippets/stars.html' with rating=item.rating %}</p>
|
||||
<p>{{ item.review|truncatechars:100 }}</p>
|
||||
</td>
|
||||
<td>
|
||||
<div class="content is-flex">
|
||||
<form class="pr-2" name="approve-{{ item.id }}" method="POST" action="{% url 'import-approve' job.id item.id %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="button is-success">
|
||||
|
@ -68,6 +76,7 @@
|
|||
<span class="is-sr-only-mobile">{% trans "Delete" %}</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue