File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
resources/views/components Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
</div >
6
6
<div class =" flex items-center gap-2 text-sm text-zinc-500 dark:text-zinc-400" x-data =" { from: new Date(@js ($from )), to: new Date(@js ($to )) }" >
7
7
<div ><x-heroicon-m-calendar class =" size-4" /></div >
8
- <div ><span x-html =" from.toLocaleDateString()" ></span > &mdash ; <span x-html =" to.toLocaleDateString()" ></span ></div >
8
+ <div ><time datetime = " {{ $from } } " x-text =" from.toLocaleDateString()" ></time > &mdash ; <time datetime = " {{ $to } } " x-text =" to.toLocaleDateString()" ></time ></div >
9
9
</div >
10
10
</div >
11
11
Original file line number Diff line number Diff line change 4
4
] )
5
5
6
6
<div class =" relative flex flex-col gap-5" x-data =" { forDate: new Date(@js ($date )) }" >
7
- <h3 class =" text-xl font-semibold" x-html =" forDate.toLocaleDateString()" ></h3 >
7
+ <h3 class =" text-xl font-semibold" >< time datetime = " {{ $date } } " x-text =" forDate.toLocaleDateString()" ></ time ></h3 >
8
8
@forelse ($incidents as $incident )
9
9
<div x-data =" { timestamp: new Date(@js ($incident -> timestamp )) }" class =" bg-white border divide-y rounded-lg ml-9 dark:divide-zinc-700 dark:border-zinc-700 dark:bg-zinc-800" >
10
10
<div @class ([
19
19
<a href =" {{ route (' cachet.status-page.incident' , $incident ) } }" >{{ $incident -> name } } </a >
20
20
</h3 >
21
21
<span class =" text-xs text-zinc-500 dark:text-zinc-400" >
22
- {{ $incident -> timestamp -> diffForHumans () } } — <span x-text =" timestamp.toLocaleString()" ></span >
22
+ {{ $incident -> timestamp -> diffForHumans () } } — <time datetime = " {{ $incident -> timestamp -> toW3cString () } } " x-text =" timestamp.toLocaleString()" ></time >
23
23
</span >
24
24
</div >
25
25
<div class =" flex justify-start sm:justify-end" >
44
44
<x-cachet::incident-update-status :update =" $update" />
45
45
{{-- <h3 class="text-lg font-semibold">Incident Update Title</h3>--}}
46
46
<span class =" text-xs text-zinc-500 dark:text-zinc-400" >
47
- {{ $update -> created_at -> diffForHumans () } } — <span x-text =" timestamp.toLocaleString()" ></span >
47
+ {{ $update -> created_at -> diffForHumans () } } — <time datetime = " {{ $update -> created_at -> toW3cString () } } " x-text =" timestamp.toLocaleString()" ></time >
48
48
</span >
49
49
<div class =" mt-1 prose-sm md:prose md:prose-zinc dark:text-zinc-100" >
50
50
{!! $update -> formattedMessage () ! !}
Original file line number Diff line number Diff line change 9
9
{{ $schedule -> name } }
10
10
</h3 >
11
11
<span class =" text-xs text-zinc-500 dark:text-zinc-400" >
12
- {{ $schedule -> scheduled_at -> diffForHumans () } } — <span x-text =" timestamp.toLocaleString()" ></span >
12
+ {{ $schedule -> scheduled_at -> diffForHumans () } } — <time datetime = " {{ $schedule -> scheduled_at -> toW3cString () } } " x-text =" timestamp.toLocaleString()" ></time >
13
13
</span >
14
14
</div >
15
15
<div class =" flex justify-start sm:justify-end" >
You can’t perform that action at this time.
0 commit comments