2015-05-18 11:11:14 +09:00
|
|
|
Telescope.menuItems.add("userMenu", [
|
2015-04-28 15:54:19 +09:00
|
|
|
{
|
|
|
|
route: function () {
|
|
|
|
return Router.path('user_profile', {_idOrSlug: Meteor.user().telescope.slug});
|
|
|
|
},
|
|
|
|
label: 'profile',
|
|
|
|
description: 'view_your_profile'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
route: function () {
|
|
|
|
return Router.path('user_edit', {slug: Meteor.user().telescope.slug});
|
|
|
|
},
|
|
|
|
label: 'edit_account',
|
|
|
|
description: 'edit_your_profile'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
route: 'settings',
|
|
|
|
label: 'settings',
|
|
|
|
description: 'settings',
|
|
|
|
adminOnly: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
route: 'signOut',
|
|
|
|
label: 'sign_out',
|
|
|
|
description: 'sign_out'
|
|
|
|
}
|
2015-05-18 11:39:12 +09:00
|
|
|
]);
|
|
|
|
|
|
|
|
// array containing items in the admin menu
|
|
|
|
Telescope.menuItems.add("adminMenu", [
|
|
|
|
{
|
|
|
|
route: 'users_dashboard',
|
|
|
|
label: 'users',
|
|
|
|
description: 'users_dashboard'
|
|
|
|
}
|
2015-04-28 15:54:19 +09:00
|
|
|
]);
|