Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
SRCT-chat
Commits
58fdf140
Commit
58fdf140
authored
Nov 18, 2014
by
Manuel Gauto
Browse files
Finish up collections. Add route for home.
parent
5a09366f
Changes
3
Hide whitespace changes
Inline
Side-by-side
client/views/home/home.html
0 → 100644
View file @
58fdf140
<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>
client/views/home/home.js
0 → 100644
View file @
58fdf140
Template
.
home
.
helpers
({
channels
:
function
()
{
return
Channels
.
find
().
fetch
();
},
channelName
:
function
(
channelId
)
{
var
channelObj
=
Channels
.
findOne
(
channelId
);
return
channelObj
.
name
;
}
});
client/views/landing/loginForm.js
0 → 100644
View file @
58fdf140
Template
.
loginForm
.
events
({
'
submit #loginForm
'
:
function
(
e
,
t
)
{
var
username
=
$
(
'
#username-field
'
).
value
;
var
password
=
$
(
'
#password-field
'
)
}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment