2015-01-30 12:29:32 -06:00
|
|
|
export default {
|
|
|
|
resource: 'admin',
|
|
|
|
|
2015-02-06 16:32:59 -06:00
|
|
|
map() {
|
2013-02-22 14:41:12 -06:00
|
|
|
this.route('dashboard', { path: '/' });
|
2013-11-13 13:02:47 -06:00
|
|
|
this.resource('adminSiteSettings', { path: '/site_settings' }, function() {
|
|
|
|
this.resource('adminSiteSettingsCategory', { path: 'category/:category_id'} );
|
|
|
|
});
|
2013-04-04 11:59:44 -05:00
|
|
|
|
2013-06-03 15:12:24 -05:00
|
|
|
this.resource('adminEmail', { path: '/email'}, function() {
|
2014-02-14 18:17:13 -06:00
|
|
|
this.route('all');
|
2014-02-14 17:50:08 -06:00
|
|
|
this.route('sent');
|
2014-02-14 12:06:21 -06:00
|
|
|
this.route('skipped');
|
2013-06-03 15:12:24 -05:00
|
|
|
this.route('previewDigest', { path: '/preview-digest' });
|
|
|
|
});
|
|
|
|
|
2014-04-16 08:49:06 -05:00
|
|
|
this.resource('adminCustomize', { path: '/customize' } ,function() {
|
|
|
|
this.route('colors');
|
|
|
|
this.route('css_html');
|
2014-09-24 13:45:35 -05:00
|
|
|
this.resource('adminSiteText', { path: '/site_text' }, function() {
|
|
|
|
this.route('edit', {path: '/:text_type'});
|
2014-09-23 16:12:01 -05:00
|
|
|
});
|
2014-12-22 18:12:26 -06:00
|
|
|
this.resource('adminUserFields', { path: '/user_fields' });
|
|
|
|
this.resource('adminEmojis', { path: '/emojis' });
|
2014-04-16 08:49:06 -05:00
|
|
|
});
|
2014-02-12 22:34:57 -06:00
|
|
|
this.route('api');
|
|
|
|
|
|
|
|
this.resource('admin.backups', { path: '/backups' }, function() {
|
|
|
|
this.route('logs');
|
|
|
|
});
|
2013-02-21 13:09:28 -06:00
|
|
|
|
2013-02-27 21:39:42 -06:00
|
|
|
this.resource('adminReports', { path: '/reports/:type' });
|
|
|
|
|
2013-02-22 14:41:12 -06:00
|
|
|
this.resource('adminFlags', { path: '/flags' }, function() {
|
2014-11-11 14:48:13 -06:00
|
|
|
this.route('list', { path: '/:filter' });
|
2013-02-22 14:41:12 -06:00
|
|
|
});
|
2013-02-21 13:09:28 -06:00
|
|
|
|
2013-08-01 20:30:13 -05:00
|
|
|
this.resource('adminLogs', { path: '/logs' }, function() {
|
2013-08-07 15:04:12 -05:00
|
|
|
this.route('staffActionLogs', { path: '/staff_action_logs' });
|
2013-08-15 09:48:30 -05:00
|
|
|
this.route('screenedEmails', { path: '/screened_emails' });
|
2013-10-21 13:49:51 -05:00
|
|
|
this.route('screenedIpAddresses', { path: '/screened_ip_addresses' });
|
2013-08-15 09:48:30 -05:00
|
|
|
this.route('screenedUrls', { path: '/screened_urls' });
|
2013-08-01 20:30:13 -05:00
|
|
|
});
|
|
|
|
|
2015-01-21 13:52:48 -06:00
|
|
|
this.resource('adminGroups', { path: '/groups' }, function() {
|
|
|
|
this.resource('adminGroupsType', { path: '/:type' }, function() {
|
|
|
|
this.resource('adminGroup', { path: '/:name' });
|
|
|
|
});
|
2014-04-23 12:25:02 -05:00
|
|
|
});
|
2013-04-17 02:08:21 -05:00
|
|
|
|
2013-02-22 14:41:12 -06:00
|
|
|
this.resource('adminUsers', { path: '/users' }, function() {
|
2014-01-22 16:09:56 -06:00
|
|
|
this.resource('adminUser', { path: '/:username' }, function() {
|
2014-03-19 09:27:21 -05:00
|
|
|
this.route('badges');
|
2014-09-24 19:19:26 -05:00
|
|
|
this.route('tl3Requirements', { path: '/tl3_requirements' });
|
2014-01-22 16:09:56 -06:00
|
|
|
});
|
2014-11-26 12:05:49 -06:00
|
|
|
|
2013-02-22 14:41:12 -06:00
|
|
|
this.resource('adminUsersList', { path: '/list' }, function() {
|
2015-01-21 13:52:48 -06:00
|
|
|
this.route('show', { path: '/:filter' });
|
2013-02-22 14:41:12 -06:00
|
|
|
});
|
2013-02-20 12:15:50 -06:00
|
|
|
});
|
2013-02-22 14:41:12 -06:00
|
|
|
|
2014-10-17 13:27:40 -05:00
|
|
|
this.resource('adminBadges', { path: '/badges' }, function() {
|
|
|
|
this.route('show', { path: '/:badge_id' });
|
|
|
|
});
|
2015-01-30 12:29:32 -06:00
|
|
|
}
|
|
|
|
};
|