mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-11 13:40:14 +00:00
🛠️ Add safe navigation operator and fallback asset for handling null profiles in blade templates
This commit is contained in:
@@ -181,9 +181,9 @@ $deleteNow = function ($id) {
|
|||||||
<!-- Avatar -->
|
<!-- Avatar -->
|
||||||
<div class="shrink-0 mt-1.5">
|
<div class="shrink-0 mt-1.5">
|
||||||
<img class="w-8 h-8 rounded-full"
|
<img class="w-8 h-8 rounded-full"
|
||||||
src="{{ $post->einundzwanzigPleb->profile->picture }}"
|
src="{{ $post->einundzwanzigPleb->profile?->picture ?? asset('einundzwanzig-alpha.jpg') }}"
|
||||||
width="32" height="32"
|
width="32" height="32"
|
||||||
alt="{{ $post->einundzwanzigPleb->profile->name }}">
|
alt="{{ $post->einundzwanzigPleb->profile?->name }}">
|
||||||
</div>
|
</div>
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ $handleNotApprove = function () {
|
|||||||
<div class="flex items-center sm:mr-4">
|
<div class="flex items-center sm:mr-4">
|
||||||
<a class="block mr-2 shrink-0" href="#0">
|
<a class="block mr-2 shrink-0" href="#0">
|
||||||
<img class="rounded-full"
|
<img class="rounded-full"
|
||||||
src="{{ $projectProposal->einundzwanzigPleb->profile->picture }}"
|
src="{{ $projectProposal->einundzwanzigPleb->profile?->picture ?? asset('einundzwanzig-alpha.jpg') }}"
|
||||||
width="32" height="32" alt="User 04">
|
width="32" height="32" alt="User 04">
|
||||||
</a>
|
</a>
|
||||||
<div class="text-sm whitespace-nowrap">Eingereicht von
|
<div class="text-sm whitespace-nowrap">Eingereicht von
|
||||||
|
|||||||
Reference in New Issue
Block a user