1
0
Fork 0
forked from mirror/pixelfed

Add mention notifications

This commit is contained in:
Daniel Supernault 2018-06-08 21:33:57 -06:00
parent dd60413394
commit 7139b5f380

View file

@ -61,6 +61,23 @@
</span> </span>
@break @break
@case('mention')
<span class="notification-icon pr-3">
<img src="{{$notification->status->profile->avatarUrl()}}" width="32px" class="rounded-circle">
</span>
<span class="notification-text">
{!! $notification->rendered !!}
<span class="text-muted notification-timestamp pl-1">{{$notification->created_at->diffForHumans(null, true, true, true)}}</span>
</span>
<span class="float-right notification-action">
@if($notification->item_id)
<a href="{{$notification->status->url()}}">
<div class="notification-image" style="background-image: url('{{$notification->status->thumb()}}')"></div>
</a>
@endif
</span>
@break
@endswitch @endswitch
</li> </li>
@endforeach @endforeach