[Web] Improve alias domain table

master
andryyy 2021-05-30 16:07:57 +02:00
parent 8a83587800
commit 839e9bd91c
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 7 additions and 3 deletions

View File

@ -3,3 +3,6 @@
padding-top: 15px !important;
}
}
.ui-announcement-alert {
margin: 10px 0px 10px 0px;
}

View File

@ -33,7 +33,7 @@ $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
<div class="panel-body">
<div class="text-center mailcow-logo"><img src="<?=($main_logo = customize('get', 'main_logo')) ? $main_logo : '/img/cow_mailcow.svg';?>" alt="mailcow"></div>
<?php if (!empty($UI_TEXTS['ui_announcement_text']) && in_array($UI_TEXTS['ui_announcement_type'], array('info', 'warning', 'danger')) && $UI_TEXTS['ui_announcement_active'] == 1) { ?>
<div class="alert alert-<?=$UI_TEXTS['ui_announcement_type'];?> rot-enc"><?=str_rot13($UI_TEXTS['ui_announcement_text']);?></div>
<div class="alert alert-<?=$UI_TEXTS['ui_announcement_type'];?> rot-enc ui-announcement-alert"><?=str_rot13($UI_TEXTS['ui_announcement_text']);?></div>
<?php } ?>
<legend><?= isset($_SESSION['oauth2_request']) ? $lang['oauth2']['authorize_app'] : $UI_TEXTS['main_name'];?></legend>
<?php

View File

@ -822,7 +822,7 @@ jQuery(function($){
item.goto = '<span class="label label-success">Learn as ham</span>';
}
if (item.in_primary_domain !== "") {
item.domain = "↳ " + item.domain + " (" + item.in_primary_domain + ")";
item.domain = '<i class="bi bi-info-circle-fill alias-domain-info text-info" data-toggle="tooltip" title="' + lang.target_domain + ': ' + item.in_primary_domain + '"></i> ' + item.domain;
}
});
}
@ -854,6 +854,7 @@ jQuery(function($){
},
"ready.ft.table": function(e, ft){
table_mailbox_ready(ft, 'alias_table');
$('.alias-domain-info').tooltip();
},
"after.ft.filtering": function(e, ft){
table_mailbox_ready(ft, 'alias_table');