var subscriptions = new SubsManager();

Router.configure({
	layoutTemplate: 'layout',
	loadingTemplate: 'loading',
	notFoundTemplate: 'notFound'
});

Router.route('/', {
	name: 'home',
	waitOn: function() {
		return subscriptions.subscribe('allMangasCover');
	},
	fastRender: true
});

Router.route('/addMangaForUser/step1', {
	name: 'addMangaForUserStep1',
	waitOn: function() {
		return subscriptions.subscribe('allMangasCover');
	}
});

Router.route('/addMangaForUser/step2/:_id', {
	name: 'addMangaForUserStep2',
	waitOn: function() {
		return subscriptions.subscribe('oneMangasData', this.params._id);
	}
});

Router.route('/ownedMangas', {
	name: 'ownedMangas',
	waitOn: function() {
		return subscriptions.subscribe('allOwnedMangas', Meteor.userId());
	}
});

Router.route('/missingMangas', {
	name: 'missingMangas',
	waitOn: function() {
		return subscriptions.subscribe('allMissingMangas', Meteor.userId());
	}
});

Router.route('/:name/tome/:number/:_id', {
	name: 'tomeDetails',
	waitOn: function() {
		return [
			subscriptions.subscribe('tomeDetails', this.params._id),
			subscriptions.subscribe('allTomes', Meteor.userId(), this.params.name)
		];
	},
	data: function() {
		return Mangas.findOne(this.params._id);
	}
});

Router.route('/:author', {
	name: 'mangaka',
	waitOn: function() {
		return subscriptions.subscribe('mangaka', this.params.author);
	}
});

Router.route('/admin/addCompleteMangas', {
	name: 'addCompleteMangas'
});

@@ -533,32 +533,37 @@
 on() %7B%0A%09%09return 
+%5B%0A%09%09%09
 subscriptions.su
@@ -595,32 +595,100 @@
 this.params._id)
+,%0A%09%09%09subscriptions.subscribe('allTomesForUser', Meteor.userId())%0A%09%09%5D
 ;%0A%09%7D%0A%7D);%0A%0ARouter

Add subscribtions