mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
20 lines
No EOL
506 B
JavaScript
20 lines
No EOL
506 B
JavaScript
|
|
|
|
Template.user_profile.user = function(){
|
|
if(userId=Session.get('selectedUserId')){
|
|
return Meteor.users.findOne(userId);
|
|
}
|
|
}
|
|
|
|
Template.user_profile.avatarUrl = function(){
|
|
return Gravatar.getGravatar(this, {
|
|
d: 'http://telescope.herokuapp.com/img/default_avatar.png',
|
|
s: 80
|
|
});
|
|
}
|
|
|
|
Template.user_profile.createdAtFormatted = Template.user_item.createdAtFormatted;
|
|
|
|
Template.user_profile.isCurrentUser = function(){
|
|
return Meteor.user() && (Session.get('selectedUserId') === Meteor.user()._id);
|
|
} |