add seperate css for cron monitor

This commit is contained in:
Focuslinkstech 2024-09-13 12:03:18 +01:00 committed by GitHub
parent 5f7f785d99
commit f738c9b120
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 3 deletions

View file

@ -198,17 +198,17 @@
{assign var="current_time" value=$smarty.now}
{assign var="run_time" value=strtotime($run_date)}
{if $current_time - $run_time > 3600}
<div class="panel panel-danger panel-hovered mb20 activities">
<div class="panel panel-cron-warning panel-hovered mb20 activities">
<div class="panel-heading"><i class="fa fa-clock-o"></i> &nbsp; {Lang::T('Cron has not run for over 1 hour. Please
check your setup.')}</div>
</div>
{else}
<div class="panel panel-success panel-hovered mb20 activities">
<div class="panel panel-cron-success panel-hovered mb20 activities">
<div class="panel-heading">{Lang::T('Cron Job last ran on')}: {$run_date}</div>
</div>
{/if}
{else}
<div class="panel panel-danger panel-hovered mb20 activities">
<div class="panel panel-cron-danger panel-hovered mb20 activities">
<div class="panel-heading"><i class="fa fa-warning"></i> &nbsp; {Lang::T('Cron appear not been setup, please check
your cron setup.')}</div>
</div>

View file

@ -157,6 +157,30 @@
border-bottom-left-radius: 21px;
}
.panel-cron-success>.panel-heading {
border-bottom-right-radius: 21px;
border-bottom-left-radius: 21px;
color: #fff;
background-color: #169210;
border-color: #25e01c;
}
.panel-cron-warning>.panel-heading {
border-bottom-right-radius: 21px;
border-bottom-left-radius: 21px;
color: #350808;
background-color: #efeb0a;
border-color: #efeb0a;
}
.panel-cron-danger>.panel-heading {
border-bottom-right-radius: 21px;
border-bottom-left-radius: 21px;
color: #fff;
background-color: #e61212;
border-color: #df1335;
}
.panel-danger>.panel-heading {
color: #a94442;
background-color: #f2dede;