mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-09 00:35:51 +00:00
Handle unlimited Imports
This commit is contained in:
parent
3295d419bf
commit
8f9ac82094
1 changed files with 7 additions and 6 deletions
|
@ -15,11 +15,12 @@
|
|||
{% endif %}
|
||||
|
||||
{% if site.imports_enabled %}
|
||||
<div class="notification">
|
||||
<p>Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.</p>
|
||||
<p>You have {{ allowed_imports }} left.</p>
|
||||
</div>
|
||||
|
||||
{% if import_size_limit and import_limit_reset %}
|
||||
<div class="notification">
|
||||
<p>Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.</p>
|
||||
<p>You have {{ allowed_imports }} left.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if recent_avg_hours or recent_avg_minutes %}
|
||||
<div class="notification">
|
||||
<p>
|
||||
|
@ -95,7 +96,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if allowed_imports > 0 %}
|
||||
{% if not import_limit_reset and not import_size_limit or allowed_imports > 0 %}
|
||||
<button class="button is-primary" type="submit">{% trans "Import" %}</button>
|
||||
{% else %}
|
||||
<button class="button is-primary is-disabled" type="submit">{% trans "Import" %}</button>
|
||||
|
|
Loading…
Reference in a new issue