summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-10 15:26:51 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-10 15:26:51 +0300
commitfbd92e7ca12ddcced8b97c6b816f356ffc1ed80c (patch)
tree52a657c2af7a262297ead57cd47d66636900aa14 /client
parent249a424970bf066efcd9c3d1b3a40541e6f66843 (diff)
Rename some routes
Diffstat (limited to 'client')
-rw-r--r--client/button.js12
-rw-r--r--client/templates/dates.html3
-rw-r--r--client/templates/layout.html2
-rw-r--r--client/templates/photos.html (renamed from client/templates/one.html)3
-rw-r--r--client/templates/two.html3
5 files changed, 11 insertions, 12 deletions
diff --git a/client/button.js b/client/button.js
index 1ab171e..29eeb91 100644
--- a/client/button.js
+++ b/client/button.js
@@ -15,16 +15,16 @@ Template.login.events({
}
});
-Template.one.helpers({
+Template.photos.helpers({
photos: function () {
return Session.get('photos');
}
})
Accounts.onLogin(function() {
- Meteor.call('getInstagramMedia', function(error, results) {
- console.log('Instagram response', results.data)
- Session.set('photos', results.data.data);
- });
- Router.go('one');
+ // Meteor.call('getInstagramMedia', function(error, results) {
+ // console.log('Instagram response', results.data)
+ // Session.set('photos', results.data.data);
+ // });
+ Router.go('dates');
});
diff --git a/client/templates/dates.html b/client/templates/dates.html
new file mode 100644
index 0000000..59b887f
--- /dev/null
+++ b/client/templates/dates.html
@@ -0,0 +1,3 @@
+<template name="dates">
+ <h2>select</h2>
+</template>
diff --git a/client/templates/layout.html b/client/templates/layout.html
index b9678a3..a724bed 100644
--- a/client/templates/layout.html
+++ b/client/templates/layout.html
@@ -1,5 +1,5 @@
<template name="layout">
- <h1>Colors</h1>
<button class="logout">logout</button>
+ <hr>
{{> yield}}
</template>
diff --git a/client/templates/one.html b/client/templates/photos.html
index 65358a2..565e0cc 100644
--- a/client/templates/one.html
+++ b/client/templates/photos.html
@@ -1,5 +1,4 @@
-<template name="one">
- <h1>one</h1>
+<template name="photos">
{{#each photos}}
{{> photo}}
{{/each}}
diff --git a/client/templates/two.html b/client/templates/two.html
deleted file mode 100644
index 4e46932..0000000
--- a/client/templates/two.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<template name="two">
- <h1>two</h1>
-</template>