Fix SI and Decimal unit usage
SI: For 1000, it is kB, MB, GB IEC: For 1024, it is KiB, MiB, GiB JEDEC: For 1024, it is KB, MB (conflicts with SI, of course) Ultimately, what we decided is for RAM use IEC and for Disk use SI. This is what docker does and also suggested here - https://stackoverflow.com/questions/8632269/displaying-file-size-1000b-1kb-or-1024b-1kb
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
<div class="form-group">
|
||||
<label for="storageQuota">
|
||||
<input id="storageQuota" type="checkbox" ng-model="mailboxes.edit.storageQuotaEnabled">
|
||||
{{ 'email.editMailboxDialog.enableStorageQuota' | tr }} <b ng-hide="!mailboxes.edit.storageQuotaEnabled">: {{ mailboxes.edit.storageQuota | prettyByteSize }}</b>
|
||||
{{ 'email.editMailboxDialog.enableStorageQuota' | tr }} <b ng-hide="!mailboxes.edit.storageQuotaEnabled">: {{ mailboxes.edit.storageQuota | prettyDecimalSize }}</b>
|
||||
</input>
|
||||
</label>
|
||||
<div style="padding: 0 10px;">
|
||||
@@ -458,7 +458,7 @@
|
||||
<span ng-repeat="alias in mailbox.aliases"> {{ alias.name + '@' + alias.domain }}</span>
|
||||
</td>
|
||||
<td class="hand no-wrap" ng-click="mailboxes.edit.show(mailbox)">
|
||||
{{ mailbox.usage | prettyByteSize }} <span ng-show="mailbox.limit">/ {{ mailbox.limit | prettyByteSize }}</span>
|
||||
{{ mailbox.usage | prettyDecimalSize }} <span ng-show="mailbox.limit">/ {{ mailbox.limit | prettyDecimalSize }}</span>
|
||||
</td>
|
||||
<td class="text-right no-wrap">
|
||||
<button class="btn btn-xs btn-default" ng-click="mailboxes.edit.show(mailbox)"><i class="fa fa-pencil-alt"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user