Pārlūkot izejas kodu

Update settings view, add fallback avatar

Daniel Supernault 2 gadi atpakaļ
vecāks
revīzija
1a83c5858d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      resources/views/settings/home.blade.php

+ 1 - 1
resources/views/settings/home.blade.php

@@ -8,7 +8,7 @@
 	<hr>
 	<div class="form-group row">
 		<div class="col-sm-3">
-			<img src="{{Auth::user()->profile->avatarUrl()}}" width="38px" height="38px" class="rounded-circle float-right">
+			<img src="{{Auth::user()->profile->avatarUrl()}}" width="38px" height="38px" class="rounded-circle float-right" draggable="false" onerror="this.src='/storage/avatars/default.jpg?v=0';this.onerror=null;">
 		</div>
 		<div class="col-sm-9">
 			<p class="lead font-weight-bold mb-0">{{Auth::user()->username}}</p>