Skip to content

Commit

Permalink
use the pathFor helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Jul 13, 2014
1 parent b5c8426 commit c41dad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion client/views/userProfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<div class="col-md-9">
<h2>Friends <span class="badge">{{this.profile.friends.length}}</span></h2>
{{#each userFriends}}
<div class="avatar" style="background-image:url('{{avatarUrl}}')"></div>
<a href="{{pathFor 'userProfile'}}">
<div class="avatar" style="background-image:url('{{avatarUrl}}')"></div>
</a>
{{/each}}
</div>

Expand Down
3 changes: 0 additions & 3 deletions client/views/userProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ Template.userProfile.events = {
'click [data-action="edit-avatar"]': function() {
Session.set("showEditAvatarBar",!Session.get("showEditAvatarBar"));
},
'click div.avatar': function() {
Router.go('userProfile', {_id: this._id});
}
};

Template.userPlaylist.songCount = function() {
Expand Down

0 comments on commit c41dad9

Please sign in to comment.