{{#each notification}}
diff --git a/packages/.gitignore b/packages/.gitignore
index 45de874..0846894 100644
--- a/packages/.gitignore
+++ b/packages/.gitignore
@@ -2,3 +2,4 @@
/font-awesome
/iron-router
/blaze-layout
+/bootstrap3-datepicker
diff --git a/server/server.coffee b/server/server.coffee
index c2f06c0..bb8fde2 100644
--- a/server/server.coffee
+++ b/server/server.coffee
@@ -12,15 +12,16 @@ getUser = (id) -> Meteor.users.findOne { _id: id }
# Returns true if the user has verified at least one email address
userValidated = (user) ->
- if not user?
- console.log "Impossible! Trying to validate null user"
- return no
+ return no unless user?
return yes for mail in user.emails when mail.verified is yes; no
# Publish user's notes to each user.
Meteor.publish "my-notes", ->
if userValidated getUser(@userId)
- notes.find userId: @userId
+ notes.find userId: @userId, archived: no
+Meteor.publish "archive", ->
+ if userValidated getUser(@userId)
+ notes.find userId: @userId, archived: yes
# Methods that the clients can invoke
Meteor.methods
diff --git a/smart.json b/smart.json
index dfc655d..59185cb 100644
--- a/smart.json
+++ b/smart.json
@@ -2,6 +2,7 @@
"packages": {
"bootstrap-3": {},
"font-awesome": {},
- "iron-router": {}
+ "iron-router": {},
+ "bootstrap3-datepicker": {}
}
}
diff --git a/smart.lock b/smart.lock
index 24174ad..6d22da3 100644
--- a/smart.lock
+++ b/smart.lock
@@ -4,7 +4,8 @@
"basePackages": {
"bootstrap-3": {},
"font-awesome": {},
- "iron-router": {}
+ "iron-router": {},
+ "bootstrap3-datepicker": {}
},
"packages": {
"bootstrap-3": {
@@ -22,6 +23,11 @@
"tag": "v0.7.1",
"commit": "d1ffb3f06ea4c112132b030f2eb1a70b81675ecb"
},
+ "bootstrap3-datepicker": {
+ "git": "https://github.com/rajit/bootstrap3-datepicker.git",
+ "tag": "v0.2.1",
+ "commit": "442484eb1c8eb00c6b9e0e9c88accc934cf8f04a"
+ },
"blaze-layout": {
"git": "https://github.com/EventedMind/blaze-layout.git",
"tag": "v0.2.4",