Flare-k

Modify video mixin and Controller

......@@ -5,6 +5,7 @@ block content
.videos
each item in videos
+videoBlock({
id: item.id,
title : item.title,
views: item.views,
videoFile:item.videoFile
......
......@@ -3,9 +3,9 @@ extends layouts/main
block content
.form-container
form(action=routes.join, method="post")
input(type="text", name="name", placeholder="Full Name")
input(type="email", name="email", placeholder="Email")
input(type="password", name="password", placeholder="Password")
input(type="password", name="password2", placeholder="Verify Password")
input(type="text", name="name", placeholder="Full Name", required=true)
input(type="email", name="email", placeholder="Email", required=true)
input(type="password", name="password", placeholder="Password", required=true)
input(type="password", name="password2", placeholder="Verify Password", required=true)
input(type="submit", value="Join Now")
include partials/socialLogin
\ No newline at end of file
......
mixin videoBlock(video = {})
.videoBlock
a(href=routes.videoDetail(video.id))
video.videoBlock__thumbnail(src=video.videoFile, controls=true)
h4.videoBlock__title=video.title
h6.videoBlock__views=video.views
......
......@@ -14,7 +14,7 @@ header.header
a(href=routes.login) Log In
else
li
a(href=routes.upload) Upload
a(href=`/videos${routes.upload}`) Upload
li
a(href=routes.userDetail(user.id)) Profile
li
......