mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
cleaning up
This commit is contained in:
parent
ddb65f8ec5
commit
6862c01c65
2 changed files with 15 additions and 21 deletions
|
@ -44,6 +44,7 @@ Sign In
|
|||
6) Misc Routes
|
||||
--------------------
|
||||
Settings
|
||||
Categories
|
||||
Toolbox
|
||||
|
||||
|
||||
|
@ -86,14 +87,24 @@ Router.map(function() {
|
|||
|
||||
// Top
|
||||
|
||||
// TODO
|
||||
|
||||
// New
|
||||
|
||||
// TODO
|
||||
|
||||
// Best
|
||||
|
||||
// TODO
|
||||
|
||||
// Pending
|
||||
|
||||
// TODO
|
||||
|
||||
// Categories
|
||||
|
||||
// TODO
|
||||
|
||||
// Digest
|
||||
|
||||
this.route('posts_digest', {
|
||||
|
@ -295,6 +306,10 @@ Router.map(function() {
|
|||
|
||||
this.route('signin');
|
||||
|
||||
// Categories
|
||||
|
||||
this.route('categories');
|
||||
|
||||
// Settings
|
||||
|
||||
this.route('settings');
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
Session.set('initialLoad', true);
|
||||
Session.set('currentDate', new Date());
|
||||
Session.set('categorySlug', null);
|
||||
Session.set('singlePostReady', false);
|
||||
|
||||
// Subscriptions
|
||||
|
||||
|
@ -31,26 +30,6 @@ if(Meteor.userId() != null){
|
|||
Meteor.subscribe('notifications');
|
||||
}
|
||||
|
||||
// Posts
|
||||
// We have a few subscriptions here, for the various ways we load posts
|
||||
//
|
||||
// The advantage is that
|
||||
// a) we can change pages a lot quicker
|
||||
// XXX: and we can animate between them (todo)
|
||||
// b) we know when an individual page is ready
|
||||
|
||||
// Single Post
|
||||
// Meteor.autorun(function() {
|
||||
// Meteor.subscribe('singlePost', Session.get('selectedPostId'), function(){
|
||||
// Session.set('singlePostReady', true);
|
||||
// });
|
||||
// });
|
||||
|
||||
// Digest
|
||||
// Meteor.autorun(function() {
|
||||
// digestHandle = Meteor.subscribe('postDigest', Session.get('currentDate'));
|
||||
// });
|
||||
|
||||
// Posts Lists
|
||||
STATUS_PENDING=1;
|
||||
STATUS_APPROVED=2;
|
||||
|
|
Loading…
Add table
Reference in a new issue