Finished implementing useraccounts

This commit is contained in:
Stefan Zermatten
2015-05-11 12:15:00 +02:00
parent 5cb1515235
commit 0a01885300
11 changed files with 162 additions and 64 deletions

View File

@@ -1,3 +1,12 @@
Template.profile.helpers({
profileName: function() {
var user = Meteor.user();
return user.profile && user.profile.username ||
user.username ||
"Tap to set username";
}
});
Template.profile.events({
"tap #username": function(){
if (this._id === Meteor.userId()){