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