File tree Expand file tree Collapse file tree 4 files changed +24
-7
lines changed
Expand file tree Collapse file tree 4 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 22 $fieldData = $payload [' changes' ][' field_value' ] ?? null ;
33
44 $fieldName = $fieldData [' field_name' ] ?? ' Unknown Field' ;
5- $fromValue = $fieldData [' from' ][' name' ] ?? $fieldData [' from' ] ?? null ;
6- $toValue = $fieldData [' to' ][' name' ] ?? $fieldData [' to' ] ?? null ;
5+ $fromValue = $fieldData [' from' ][' name' ]
6+ ?? $fieldData [' from' ][' title' ]
7+ ?? $fieldData [' from' ]
8+ ?? null ;
9+ $toValue = $fieldData [' to' ][' name' ]
10+ ?? $fieldData [' to' ][' title' ]
11+ ?? $fieldData [' to' ]
12+ ?? null ;
713@endphp
814@include (
915 ' github-project::md.field_types.' . $fieldData [' field_type' ],
Original file line number Diff line number Diff line change 1+ @if ($fromValue != null && $toValue != null )
2+ **`{{ $fieldName } } `** has been changed:
3+ - From **`{{ $fromValue } } `**
4+ - To **`{{ $toValue } } `**.
5+ @elseif ($toValue == null )
6+ **`{{ $fieldName } } `** has been removed from **`{{ $fromValue } } `**.
7+ @else
8+ **`{{ $fieldName } } `** has been set to **`{{ $toValue } } `**.
9+ @endif
Original file line number Diff line number Diff line change 22 $fromColor = $fieldData [' from' ][' color' ] ?? null ;
33 $toColor = $fieldData [' to' ][' color' ] ?? null ;
44@endphp
5- @if ($fromValue != null )
5+ @if ($fromValue != null && $toValue != null )
66**`{{ $fieldName } } `** has been changed from $${\color{<?= $fromColor ? > }{{ $fromValue } } }$$ to $${\color{<?= $toColor ? > }{{ $toValue } } }$$.
7- @elseif ($toValue ! = null )
7+ @elseif ($toValue = = null )
88**`{{ $fieldName } } `** has been removed from $${\color{<?= $fromColor ? > }{{ $fromValue } } }$$.
99@else
1010**`{{ $fieldName } } `** has been set to $${\color{<?= $toColor ? > }{{ $toValue } } }$$.
Original file line number Diff line number Diff line change 1- @if ($fromValue != null )
2- **`{{ $fieldName } } `** has been changed from **`{{ $fromValue } } `** to **`{{ $toValue } } `**.
3- @elseif ($toValue != null )
1+ @if ($fromValue != null && $toValue != null )
2+ **`{{ $fieldName } } `** has been changed:
3+ - From **`{{ $fromValue } } `**
4+ - To **`{{ $toValue } } `**.
5+ @elseif ($toValue == null )
46**`{{ $fieldName } } `** has been removed from **`{{ $fromValue } } `**.
57@else
68**`{{ $fieldName } } `** has been set to **`{{ $toValue } } `**.
You can’t perform that action at this time.
0 commit comments