1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-13 17:17:23 +01:00

Calculate and display mailbox sizes in user list

This commit is contained in:
John Supplee
2019-01-29 19:18:48 +02:00
parent c5c7de8b2b
commit f68ef70b94
2 changed files with 20 additions and 0 deletions

View File

@@ -42,6 +42,7 @@
<thead>
<tr>
<th width="35%">Email Address</th>
<th>Box Size</th>
<th>Quota</th>
<th>Actions</th>
</tr>
@@ -55,6 +56,7 @@
<tr id="user-template">
<td class='address'>
</td>
<td class="box-size"></td>
<td class="quota">
</td>
<td class='actions'>
@@ -161,6 +163,7 @@ function show_users() {
n.attr('data-email', user.email);
n.attr('data-quota', user.quota);
n.find('.address').text(user.email);
n.find('.box-size').text(user.box_size);
n.find('.quota').text((user.quota == '0') ? 'unlimited' : user.quota);
n2.find('.restore_info tt').text(user.mailbox);