Commit 58fdf140 authored by Manuel Gauto's avatar Manuel Gauto
Browse files

Finish up collections. Add route for home.

parent 5a09366f
<template name="home">
<ul class="side-nav" role="navigation" title="Channel List">
{{#each channels}}
<li role="menuitem"><a id="chan-{{_id}}" href="#">{{channelName channel._id}}</a></li>
{{/each}}
</ul>
</template>
Template.home.helpers({
channels: function() {
return Channels.find().fetch();
},
channelName: function(channelId) {
var channelObj = Channels.findOne(channelId);
return channelObj.name;
}
});
Template.loginForm.events({
'submit #loginForm': function(e, t) {
var username = $('#username-field').value;
var password = $('#password-field')
}
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment