mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Gray out label for up/down/maintenance labels when they are zero (#3037)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
a581a85633
commit
668e8bafed
1 changed files with 18 additions and 3 deletions
|
@ -9,15 +9,30 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{ $t("Up") }}</h3>
|
<h3>{{ $t("Up") }}</h3>
|
||||||
<span class="num">{{ $root.stats.up }}</span>
|
<span
|
||||||
|
class="num"
|
||||||
|
:class="$root.stats.up === 0 && 'text-secondary'"
|
||||||
|
>
|
||||||
|
{{ $root.stats.up }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{ $t("Down") }}</h3>
|
<h3>{{ $t("Down") }}</h3>
|
||||||
<span class="num text-danger">{{ $root.stats.down }}</span>
|
<span
|
||||||
|
class="num"
|
||||||
|
:class="$root.stats.down > 0 ? 'text-danger' : 'text-secondary'"
|
||||||
|
>
|
||||||
|
{{ $root.stats.down }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{ $t("Maintenance") }}</h3>
|
<h3>{{ $t("Maintenance") }}</h3>
|
||||||
<span class="num text-maintenance">{{ $root.stats.maintenance }}</span>
|
<span
|
||||||
|
class="num"
|
||||||
|
:class="$root.stats.maintenance > 0 ? 'text-maintenance' : 'text-secondary'"
|
||||||
|
>
|
||||||
|
{{ $root.stats.maintenance }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{ $t("Unknown") }}</h3>
|
<h3>{{ $t("Unknown") }}</h3>
|
||||||
|
|
Loading…
Reference in a new issue