Merge pull request #2449 from bookwyrm-social/empty-csv
Don't start imports with empty CSVs
This commit is contained in:
commit
df42712b8e
3 changed files with 14 additions and 4 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue