File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,10 @@ jQuery(function($){
888
888
item . quota . value = humanFileSize ( item . quota_used ) + "/" + item . quota . value ;
889
889
890
890
item . max_quota_for_mbox = humanFileSize ( item . max_quota_for_mbox ) ;
891
- item . last_mail_login = item . last_imap_login + '/' + item . last_pop3_login + '/' + item . last_smtp_login + '/' + item . last_sso_login ;
891
+ item . last_mail_login = ( item . attributes . imap_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">IMAP @ ' + unix_time_format ( Number ( item . last_imap_login ) ) + '</div><br>' : '' ) +
892
+ ( item . attributes . pop3_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">POP3 @ ' + unix_time_format ( Number ( item . last_pop3_login ) ) + '</div><br>' : '' ) +
893
+ ( item . attributes . smtp_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">SMTP @ ' + unix_time_format ( Number ( item . last_smtp_login ) ) + '</div><br>' : '' ) +
894
+ '<div class="text-start badge bg-info" style="min-width: 70px;">SSO @ ' + unix_time_format ( Number ( item . last_sso_login ) ) + '</div>' ;
892
895
/*
893
896
if (!item.rl) {
894
897
item.rl = '∞';
@@ -1004,14 +1007,7 @@ jQuery(function($){
1004
1007
data : 'last_mail_login' ,
1005
1008
searchable : false ,
1006
1009
defaultContent : '' ,
1007
- responsivePriority : 7 ,
1008
- render : function ( data , type ) {
1009
- res = data . split ( "/" ) ;
1010
- return '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">IMAP @ ' + unix_time_format ( Number ( res [ 0 ] ) ) + '</div><br>' +
1011
- '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">POP3 @ ' + unix_time_format ( Number ( res [ 1 ] ) ) + '</div><br>' +
1012
- '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">SMTP @ ' + unix_time_format ( Number ( res [ 2 ] ) ) + '</div><br>' +
1013
- '<div class="text-start badge bg-info" style="min-width: 70px;">SSO @ ' + unix_time_format ( Number ( res [ 3 ] ) ) + '</div>' ;
1014
- }
1010
+ responsivePriority : 7
1015
1011
} ,
1016
1012
{
1017
1013
title : lang . last_pw_change ,
You can’t perform that action at this time.
0 commit comments