Commit f0ee0192 authored by Helmo's avatar Helmo

Add last accessed column to mail quota table

parent 06a08d81
......@@ -243,7 +243,10 @@ class quota_lib {
if(is_array($emails) && !empty($emails)){
for($i=0;$i<sizeof($emails);$i++){
$email = $emails[$i]['email'];
if (empty($emails[$i]['last_access'])) {
$emails[$i]['last_access'] = $app->lng('never_accessed');
}
$emails[$i]['name'] = $app->functions->htmlentities($emails[$i]['name']);
$emails[$i]['used'] = isset($monitor_data[$email]['used']) ? $monitor_data[$email]['used'] : array(1 => 0);
......
......@@ -159,4 +159,5 @@ $wb['security_check1_txt'] = 'Check for security permission:';
$wb['security_check2_txt'] = 'failed.';
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
?>
\ No newline at end of file
$wb['never_accessed'] = 'Never or unknown';
?>
......@@ -158,4 +158,5 @@ $wb['datalog_status_d_xmpp_domain'] = 'Delete XMPP domain';
$wb['datalog_status_i_xmpp_user'] = 'Create XMPP user';
$wb['datalog_status_u_xmpp_user'] = 'Update XMPP user';
$wb['datalog_status_d_xmpp_user'] = 'Delete XMPP user';
$wb['never_accessed'] = 'Niet of onbekend';
?>
......@@ -6,6 +6,7 @@
<th>{tmpl_var name='email_txt'}</th>
<th>{tmpl_var name='name_txt'}</th>
<th>{tmpl_var name='used_txt'}</th>
<th>{tmpl_var name='last_accessed_txt'}</th>
<th colspan="2">{tmpl_var name='quota_txt'}</th>
</tr>
</thead>
......@@ -15,6 +16,7 @@
<td><a href="#" data-load-content="mail/mail_user_edit.php?id={tmpl_var name='mailuser_id'}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{tmpl_var name='email'}">{tmpl_var name='email'}</a></td>
<td>{tmpl_var name='name'}</td>
<td>{tmpl_var name='used'}</td>
<td>{tmpl_var name='last_access'}</td>
<td>{tmpl_var name='quota'}</td>
<td>
<div class='progress'>
......
......@@ -5,4 +5,5 @@ $wb["name_txt"] = 'Name';
$wb["used_txt"] = 'Used Space';
$wb["quota_txt"] = 'Quota';
$wb["no_email_accounts_txt"] = 'No email accounts found.';
?>
\ No newline at end of file
$wb["last_accessed_txt"] = 'Last accessed';
?>
......@@ -5,4 +5,5 @@ $wb['name_txt'] = 'Naam';
$wb['used_txt'] = 'Gebruikte ruimte';
$wb['quota_txt'] = 'Quota';
$wb['no_email_accounts_txt'] = 'Geen e-mail accounts gevonden.';
$wb["last_accessed_txt"] = 'Laatst gebruikt';
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment