mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
17 lines
381 B
JavaScript
17 lines
381 B
JavaScript
Template.user_menu.helpers({
|
|
user: function () {
|
|
return Meteor.user();
|
|
},
|
|
menuItems: function () {
|
|
return Telescope.menuItems.get("userMenu");
|
|
},
|
|
menuMode: function () {
|
|
if (!!this.mobile) {
|
|
return 'list';
|
|
} else if (Settings.get('navLayout', 'top-nav') === 'top-nav') {
|
|
return 'dropdown';
|
|
} else {
|
|
return 'accordion';
|
|
}
|
|
}
|
|
});
|