~xdavidwu/uptime-monitor

257e3d227fd29ad95a2f644ccbffac46c563abdd — xdavidwu 3 years ago 7895b07
view: use user-facing title if exists
2 files changed, 2 insertions(+), 2 deletions(-)

M app/Http/Controllers/UptimeController.php
M resources/views/uptime.blade.php
M app/Http/Controllers/UptimeController.php => app/Http/Controllers/UptimeController.php +1 -1
@@ 49,7 49,7 @@ class UptimeController extends Controller
            }

            $data[] = [
                'description' => $probe->describe(),
                'title' => $instance->title ?? $probe->describe(),
                'logs' => $logs,
            ];
        }

M resources/views/uptime.blade.php => resources/views/uptime.blade.php +1 -1
@@ 64,7 64,7 @@
    <body>
        @foreach ($data as $instance)
            <div class="card">
                {{ $instance['description'] }}
                {{ $instance['title'] }}
                <div class="uptime-view">
                    <div class="uptime-from">{{ $instance['logs'][0]['from'] }}</div>
                    <div class="uptime-grid">