Skip to content

Commit

Permalink
Step 7.3: Add update picture button to profile view
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 23, 2016
1 parent c50cbe3 commit 36cc3b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/templates/profile.html
Expand Up @@ -4,8 +4,12 @@
</ion-nav-buttons>

<ion-content class="profile">
<a class="profile-picture positive">
<div class="upload-placehoder">
<a class="profile-picture positive" ng-click="profile.updatePicture()">
<div ng-if="profile.currentUser.profile.picture">
<img ng-src="{{ profile.currentUser.profile.picture }}" alt="profile picture">
edit
</div>
<div ng-if="!profile.currentUser.profile.picture" class="upload-placehoder">
Add photo
</div>
</a>
Expand Down

0 comments on commit 36cc3b7

Please sign in to comment.