Skip to content

Commit a5ad0c2

Browse files
committed
Improve status page and incident page
1 parent c994b82 commit a5ad0c2

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

resources/views/components/about.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if ($about !== '' && $about !== null)
1+
@if ($about !== '')
22
<div>
33
<h2 class="text-3xl font-semibold">{{ __('About This Site') }}</h2>
44
<div class="prose-sm md:prose prose-zinc mt-1 dark:prose-invert prose-a:text-primary-500 prose-a:underline">

resources/views/status-page/incident.blade.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<x-cachet::cachet :title="$incident->name">
22
<x-cachet::header />
33

4-
<div class="container mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8">
4+
<div class="container mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8 flex flex-col space-y-6">
55
<x-cachet::about />
66

7-
<div class="mt-6 space-y-10">
8-
<x-cachet::status-bar />
7+
<x-cachet::status-bar />
98

10-
<div class="flex flex-col gap-6">
11-
<div class="flex flex-col gap-14 w-full">
12-
<x-cachet::incident :date="$incident->occurred_at" :incidents="[$incident]" />
13-
</div>
9+
<div class="flex flex-col gap-6">
10+
<div class="flex flex-col gap-14 w-full">
11+
<x-cachet::incident :date="$incident->occurred_at" :incidents="[$incident]" />
1412
</div>
15-
1613
</div>
1714
</div>
1815

resources/views/status-page/index.blade.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<x-cachet::cachet>
22
<x-cachet::header />
33

4-
<div class="container mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8">
4+
<div class="container mx-auto max-w-5xl px-4 py-10 sm:px-6 lg:px-8 flex flex-col space-y-6">
55
<x-cachet::about />
66

7-
<div class="mt-6 space-y-10">
8-
<x-cachet::status-bar />
7+
<x-cachet::status-bar />
98

10-
@foreach($componentGroups as $componentGroup)
11-
<x-cachet::component-group :component-group="$componentGroup"/>
12-
@endforeach
9+
@foreach($componentGroups as $componentGroup)
10+
<x-cachet::component-group :component-group="$componentGroup"/>
11+
@endforeach
1312

14-
@if($schedules->isNotEmpty())
15-
<x-cachet::schedules :schedules="$schedules" />
16-
@endif
13+
@if($schedules->isNotEmpty())
14+
<x-cachet::schedules :schedules="$schedules" />
15+
@endif
1716

18-
<x-cachet::incidents />
19-
</div>
17+
<x-cachet::incidents />
2018
</div>
2119

2220
<x-cachet::footer />

src/View/Components/About.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private AppSettings $settings)
2424
public function render(): View|Closure|string
2525
{
2626
return view('cachet::components.about', [
27-
'about' => Str::of($this->settings->about)->trim()->markdown(),
27+
'about' => Str::of($this->settings->about)->trim()->markdown()->toString(),
2828
]);
2929
}
3030
}

0 commit comments

Comments
 (0)