2015-01-05 10:06:30 +09:00
|
|
|
adminMenu.push({
|
2014-12-18 16:01:18 +09:00
|
|
|
route: 'feeds',
|
|
|
|
label: 'Feeds',
|
|
|
|
description: 'import_new_posts_from_feeds'
|
2014-12-13 22:55:10 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
Meteor.startup(function () {
|
|
|
|
|
2014-12-18 16:01:18 +09:00
|
|
|
Router.onBeforeAction(Router._filters.isAdmin, {only: ['feeds']});
|
2015-04-13 16:29:33 +09:00
|
|
|
|
2014-12-13 22:55:10 +08:00
|
|
|
// RSS Urls Admin
|
|
|
|
|
2014-12-18 16:01:18 +09:00
|
|
|
Router.route('/feeds', {
|
|
|
|
name: 'feeds',
|
2015-03-23 10:32:56 +09:00
|
|
|
controller: AdminController,
|
2014-12-13 22:55:10 +08:00
|
|
|
waitOn: function() {
|
2015-01-14 12:31:09 +09:00
|
|
|
return [
|
|
|
|
Meteor.subscribe('feeds'),
|
2015-02-09 18:39:50 +00:00
|
|
|
Meteor.subscribe('allUsersAdmin'),
|
|
|
|
Meteor.subscribe('categories')
|
2015-01-14 12:31:09 +09:00
|
|
|
];
|
2014-12-13 22:55:10 +08:00
|
|
|
},
|
2015-04-13 16:29:33 +09:00
|
|
|
// template: 'feeds'
|
2014-12-13 22:55:10 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|