Vulcan/client/views/nav/user_menu.js
Anthony Mayer 2bafca52e3 Fixing style issues.
Also, switching Router.routes[].path to Router.path
2015-01-19 00:48:17 -08:00

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});
}
});