Browse Source

Added loginButtons.

Frederic G. MARAND 8 years ago
parent
commit
e178ee4411
3 changed files with 6 additions and 6 deletions
  1. 4 4
      authdemo.html
  2. 2 2
      authdemo.js
  3. 0 0
      server/admin.js

+ 4 - 4
authdemo.html

@@ -3,12 +3,12 @@
 </head>
 
 <body>
-  <h1>Welcome to Meteor!</h1>
-
   {{> hello}}
 </body>
 
 <template name="hello">
-  <button>Click Me</button>
-  <p>You've pressed the button {{counter}} times.</p>
+  <h1>Hello world!</h1>
+  {{ greeting }}
+  {{> loginButtons }}
+  <input type="button" value="click" />
 </template>

+ 2 - 2
authdemo.js

@@ -3,8 +3,8 @@ if (Meteor.isClient) {
   Session.setDefault('counter', 0);
 
   Template.hello.helpers({
-    counter: function () {
-      return Session.get('counter');
+    greeting: () => {
+      return "Welcome to admin";
     }
   });
 

+ 0 - 0
server/admin.js