forked from mirror/pixelfed
Add mention notifications
This commit is contained in:
parent
dd60413394
commit
7139b5f380
1 changed files with 17 additions and 0 deletions
|
@ -61,6 +61,23 @@
|
|||
</span>
|
||||
@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
|
||||
</li>
|
||||
@endforeach
|
||||
|
|
Loading…
Reference in a new issue