1
0
Fork 0

Merge pull request #2449 from bookwyrm-social/empty-csv

Don't start imports with empty CSVs
This commit is contained in:
Mouse Reeve 2022-11-25 12:31:13 -08:00 committed by GitHub
commit df42712b8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View file

@ -8,6 +8,12 @@
<div class="block">
<h1 class="title">{% trans "Import Books" %}</h1>
{% if invalid %}
<div class="notification is-danger">
{% trans "Not a valid CSV file" %}
</div>
{% endif %}
{% if site.imports_enabled %}
{% if recent_avg_hours or recent_avg_minutes %}
<div class="notification">