Skip to content

Commit

Permalink
Merge pull request #11 from andela-sachungo/develop
Browse files Browse the repository at this point in the history
(fix) display default avatar in profile edit page if user logged in t…
  • Loading branch information
sachungo committed Jan 15, 2016
2 parents a7ca254 + 4e70502 commit b9435d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/dashboard/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@
<div class="row edit-box">
<div class="col-sm-4">
<div class="text-center">
<img src="{{ $user->avatar }}"
@if($user->avatar)
<img src="{{ $user->avatar }}"
class="avatar img-circle img-thumbnail img-responsive"
alt="avatar">
@else
<img src="/image/person_avatar.png"
class="avatar img-circle img-thumbnail img-responsive"
alt="avatar">
@endif
<h4>Upload a different photo...</h4>
<form action="{{ route('change.avatar', $user->id) }}"
method="POST"
Expand Down

0 comments on commit b9435d3

Please sign in to comment.