mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 15:18:15 +00:00
fix quota msg
This commit is contained in:
parent
827eb9ca42
commit
f54051d764
1 changed files with 6 additions and 4 deletions
|
|
@ -7,10 +7,12 @@ module QuotaHelper
|
|||
|
||||
if quota_service.over_quota?
|
||||
# Danger banner when over quota
|
||||
render Primer::Beta::Flash.new(scheme: :danger, full: true) do
|
||||
plain "You've exceeded your storage quota. "
|
||||
plain "You're using #{number_to_human_size(usage[:storage_used])} of #{number_to_human_size(usage[:storage_limit])}. "
|
||||
plain "Please delete some files to continue uploading."
|
||||
render Primer::Beta::Flash.new(scheme: :danger) do
|
||||
<<~EOM
|
||||
You've exceeded your storage quota.
|
||||
You're using #{number_to_human_size(usage[:storage_used])} of #{number_to_human_size(usage[:storage_limit])}.
|
||||
Please delete some files to continue uploading.
|
||||
EOM
|
||||
end
|
||||
elsif quota_service.at_warning?
|
||||
# Warning banner when >= 80% used
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue