mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2024-11-10 09:12:51 +08:00
add seperate css for cron monitor
This commit is contained in:
parent
5f7f785d99
commit
f738c9b120
2 changed files with 27 additions and 3 deletions
|
@ -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> {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> {Lang::T('Cron appear not been setup, please check
|
||||
your cron setup.')}</div>
|
||||
</div>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue