소스 검색

Add mention notifications

Daniel Supernault 7 년 전
부모
커밋
7139b5f380
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      resources/views/account/activity.blade.php

+ 17 - 0
resources/views/account/activity.blade.php

@@ -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