This commit is contained in:
Usman Nasir
2022-05-22 13:46:29 +05:00
parent 9ff9f8ec2d
commit 968d28131b
2 changed files with 4 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ class MailServerManager(multi.Thread):
checker = 0 checker = 0
count = 1 count = 1
for items in emails: for items in emails:
dic = {'id': count, 'email': items.email} dic = {'id': count, 'email': items.email, 'DiskUsage': '%sMB' % items.DiskUsage}
count = count + 1 count = count + 1
if checker == 0: if checker == 0:
@@ -543,6 +543,7 @@ class MailServerManager(multi.Thread):
for items in records: for items in records:
dic = {'email': items.email, dic = {'email': items.email,
'DiskUsage': '%sMB' % items.DiskUsage
} }
if checker == 0: if checker == 0:

View File

@@ -163,12 +163,14 @@
<thead> <thead>
<tr> <tr>
<th>{% trans "Emails" %}</th> <th>{% trans "Emails" %}</th>
<th>{% trans "Disk Usage" %}</th>
<th>{% trans "Actions" %}</th> <th>{% trans "Actions" %}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="record in records track by $index"> <tr ng-repeat="record in records track by $index">
<td ng-bind="record.email"></td> <td ng-bind="record.email"></td>
<td ng-bind="record.DiskUsage"></td>
<td> <td>
<a data-toggle="modal" data-target="#settings" <a data-toggle="modal" data-target="#settings"
ng-click="changePasswordInitial(record.email)" ng-click="changePasswordInitial(record.email)"