From be4103f6cdebfb7b7b04270c20d6c91eeb61a4f3 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 12 Jun 2015 00:14:38 +0300 Subject: Photos page design --- client/button.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/button.js') 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'); }); -- cgit v1.3.1