Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MotherProject
/
myYoutube
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Flare-k
2020-05-25 23:20:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e7566fba0c6290fa9469ef8c7321e443e1c8064
4e7566fb
1 parent
c50f69df
Modify video mixin and Controller
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
views/home.pug
views/join.pug
views/mixins/videoBlock.pug
views/partials/header.pug
views/home.pug
View file @
4e7566f
...
...
@@ -5,6 +5,7 @@ block content
.videos
each item in videos
+videoBlock({
id: item.id,
title : item.title,
views: item.views,
videoFile:item.videoFile
...
...
views/join.pug
View file @
4e7566f
...
...
@@ -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
...
...
views/mixins/videoBlock.pug
View file @
4e7566f
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
...
...
views/partials/header.pug
View file @
4e7566f
...
...
@@ -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
...
...
Please
register
or
login
to post a comment