2015-04-24 10:49:24 +09:00
|
|
|
////////////////
|
|
|
|
// Navigation //
|
|
|
|
////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// array containing items in the views menu
|
|
|
|
Telescope.menus.register("viewsMenu", [
|
|
|
|
{
|
|
|
|
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
|
|
|
|
Telescope.menus.register("adminMenu", [
|
|
|
|
{
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
]);
|