mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
14 lines
382 B
JavaScript
14 lines
382 B
JavaScript
Template[getTemplate('userMenu')].helpers({
|
|
isLoggedIn: function () {
|
|
return !!Meteor.user();
|
|
},
|
|
name: function () {
|
|
return getDisplayName(Meteor.user());
|
|
},
|
|
profileUrl: function () {
|
|
return Router.path('user_profile', {_idOrSlug: Meteor.user().slug});
|
|
},
|
|
userEditUrl: function () {
|
|
return Router.path('user_edit', {slug: Meteor.user().slug});
|
|
}
|
|
});
|