mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Added number formatting for summary cards
Added number formatting for summary cards
This commit is contained in:
parent
f096cc5ca6
commit
35f96a6ee6
@ -146,7 +146,8 @@
|
||||
<div class="card">
|
||||
<div class="card-body text-center shadow">
|
||||
<div class="row">
|
||||
<h4>{{$information['servers_summary']['ram_mb_sum'] / 1024}} <small
|
||||
<h4>{{number_format($information['servers_summary']['ram_mb_sum'] / 1024, 2)}}
|
||||
<small
|
||||
class="text-muted">GB</small></h4>
|
||||
<p>Ram</p>
|
||||
</div>
|
||||
@ -159,7 +160,8 @@
|
||||
<div class="row">
|
||||
<h4>
|
||||
@if($information['servers_summary']['disk_gb_sum'] >= 1000)
|
||||
{{$information['servers_summary']['disk_gb_sum'] / 1024}} <small
|
||||
{{number_format($information['servers_summary']['disk_gb_sum'] / 1024,2)}}
|
||||
<small
|
||||
class="text-muted">TB</small>
|
||||
@else
|
||||
{{$information['servers_summary']['disk_gb_sum']}} <small
|
||||
@ -175,7 +177,8 @@
|
||||
<div class="card">
|
||||
<div class="card-body text-center shadow">
|
||||
<div class="row">
|
||||
<h4>{{$information['servers_summary']['bandwidth_sum'] / 1024}} <small
|
||||
<h4>{{number_format($information['servers_summary']['bandwidth_sum'] / 1024,2)}}
|
||||
<small
|
||||
class="text-muted">TB</small></h4>
|
||||
<p>Bandwidth</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user