From 8f9ac820945f07f860ba180286ae52f179080c32 Mon Sep 17 00:00:00 2001 From: Giebisch Date: Tue, 20 Dec 2022 21:32:58 +0100 Subject: [PATCH] Handle unlimited Imports --- bookwyrm/templates/import/import.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bookwyrm/templates/import/import.html b/bookwyrm/templates/import/import.html index deb39f7da..702a360b8 100644 --- a/bookwyrm/templates/import/import.html +++ b/bookwyrm/templates/import/import.html @@ -15,11 +15,12 @@ {% endif %} {% if site.imports_enabled %} -
-

Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.

-

You have {{ allowed_imports }} left.

-
- + {% if import_size_limit and import_limit_reset %} +
+

Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.

+

You have {{ allowed_imports }} left.

+
+ {% endif %} {% if recent_avg_hours or recent_avg_minutes %}

@@ -95,7 +96,7 @@

- {% if allowed_imports > 0 %} + {% if not import_limit_reset and not import_size_limit or allowed_imports > 0 %} {% else %}