summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index 293c715..0d72f7a 100644
--- a/client/button.js
+++ b/client/button.js
@@ -54,6 +54,13 @@ Template.photos.helpers({
}
})
+Template.photo.helpers({
+ date: function () {
+ var d = new Date(parseInt(this.created_time) * 1000);
+ return d.getDate() + '/' + (d.getMonth() + 1) + '/' + d.getFullYear();
+ }
+})
+
Accounts.onLogin(function() {
Router.go('dates');
});