浏览代码

Update settings view, add fallback avatar

Daniel Supernault 2 年之前
父节点
当前提交
1a83c5858d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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>