|
@@ -18,8 +18,12 @@
|
|
|
<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()}}"><img src="{{$notification->status->thumb()}}" width="32px" height="32px"></a>
|
|
|
+ @endif
|
|
|
</span>
|
|
|
@break
|
|
|
+
|
|
|
@case('follow')
|
|
|
<span class="notification-icon pr-3">
|
|
|
<img src="{{$notification->actor->avatarUrl()}}" width="32px" class="rounded-circle">
|
|
@@ -38,6 +42,22 @@
|
|
|
</span>
|
|
|
@endif
|
|
|
@break
|
|
|
+
|
|
|
+ @case('comment')
|
|
|
+ <span class="notification-icon pr-3">
|
|
|
+ <img src="{{$notification->actor->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->parent()->url()}}"><img src="{{$notification->status->parent()->thumb()}}" width="32px" height="32px"></a>
|
|
|
+ @endif
|
|
|
+ </span>
|
|
|
+ @break
|
|
|
+
|
|
|
@endswitch
|
|
|
</li>
|
|
|
@endforeach
|