-
-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{% load i18n %} | ||
{% load settings %} | ||
|
||
{% quota_exceeded_grace_period as when %} | ||
|
||
{% if user.profile.has_exceeded_quota_cached %} | ||
{% with total=user.profile.quota|disk_size used=user.profile.used_quota_cached|disk_size %} | ||
{% quota_exceeded_grace_period as when %} | ||
<div class="alert alert-warning alert-dismissible"> | ||
<i class="fas fa-info-circle"></i> {% blocktrans %}The disk quota is being exceeded ({{ used }} of {{ total }} used). The most recent tasks will be automatically deleted {{ when }}, until usage falls below {{ total }}.{% endblocktrans %} | ||
</div> | ||
{% endwith %} | ||
{% elif user.profile.quota == 0 %} | ||
<div class="alert alert-warning alert-dismissible"> | ||
<i class="fas fa-info-circle"></i> {% blocktrans %}Your account does not have a storage quota. Any new task will be automatically deleted {{ when }}{% endblocktrans %} | ||
</div> | ||
{% endif %} |