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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.imports_enabled %}
|
{% if site.imports_enabled %}
|
||||||
|
{% if import_size_limit and import_limit_reset %}
|
||||||
<div class="notification">
|
<div class="notification">
|
||||||
<p>Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.</p>
|
<p>Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.</p>
|
||||||
<p>You have {{ allowed_imports }} left.</p>
|
<p>You have {{ allowed_imports }} left.</p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if recent_avg_hours or recent_avg_minutes %}
|
{% if recent_avg_hours or recent_avg_minutes %}
|
||||||
<div class="notification">
|
<div class="notification">
|
||||||
<p>
|
<p>
|
||||||
|
@ -95,7 +96,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
<button class="button is-primary" type="submit">{% trans "Import" %}</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button class="button is-primary is-disabled" type="submit">{% trans "Import" %}</button>
|
<button class="button is-primary is-disabled" type="submit">{% trans "Import" %}</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue