Vulcan/packages/telescope-core/lib/menus.js

50 lines
932 B
JavaScript
Raw Normal View History

2015-04-24 10:49:24 +09:00
////////////////
// Navigation //
////////////////
// array containing items in the views menu
2015-05-17 15:38:02 +09:00
Telescope.menus.add("viewsMenu", [
2015-04-24 10:49:24 +09:00
{
route: 'posts_top',
label: 'top',
description: 'most_popular_posts'
},
{
route: 'posts_new',
label: 'new',
description: 'newest_posts'
},
{
route: 'posts_best',
label: 'best',
description: 'highest_ranked_posts_ever'
},
{
route: 'posts_pending',
label: 'pending',
description: 'posts_awaiting_moderation',
adminOnly: true
},
{
route: 'posts_scheduled',
label: 'scheduled',
description: 'future_scheduled_posts',
adminOnly: true
},
]);
// array containing items in the admin menu
2015-05-17 15:38:02 +09:00
Telescope.menus.add("adminMenu", [
2015-04-24 10:49:24 +09:00
{
route: 'settings',
2015-04-27 10:16:41 +09:00
label: 'settings',
2015-04-24 10:49:24 +09:00
description: 'telescope_settings_panel'
},
{
route: 'usersDashboard',
2015-04-27 10:16:41 +09:00
label: 'users',
2015-04-24 10:49:24 +09:00
description: 'users_dashboard'
}
]);