diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-12 00:14:38 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-12 00:14:38 +0300 |
| commit | be4103f6cdebfb7b7b04270c20d6c91eeb61a4f3 (patch) | |
| tree | 0eb816f7d48f1155a5fb5eb09c2095541e713282 /client/button.js | |
| parent | 9738ebafd811c77d20a0e3f0f7b6f1876ed53532 (diff) | |
Photos page design
Diffstat (limited to 'client/button.js')
| -rw-r--r-- | client/button.js | 7 |
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'); }); |
