Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이승윤
/
OpenSource-MyCookBook
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
송근영
2021-05-31 00:39:10 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6349bb24816ffbdf8e9ca244015d4360aca293a0
6349bb24
2 parents
e170968d
dfb427e2
Merge branch 'style/styles' into 'develop'
Style/styles See merge request
!12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
46 deletions
views/category/products.ejs
views/category/productsDetail.ejs
views/home.ejs
views/category/products.ejs
View file @
6349bb2
<% include ../includes/header.ejs %>
<table class="table table-bordered table-hover">
<tr>
<th width="
10
0px" style="text-align: center;">카테고리명</th>
<th style="text-align: center;">개설 날짜</th>
<th>내용</th>
<th>사용자명</th>
<th>삭제</th>
<th width="
8
0px" style="text-align: center;">카테고리명</th>
<th
width="50px"
style="text-align: center;">개설 날짜</th>
<th
width="350px" style="text-align: center;"
>내용</th>
<th
width="30px" style="text-align: center;"
>사용자명</th>
<th
width="30px" style="text-align: center;"
>삭제</th>
</tr>
<%categories.forEach(function(product){%>
<tr>
<td>
<td
style="text-align: center;"
>
<a href="/categori/products/detail/<%=product.id%>"><%=product.title%></a>
</td>
<td>
<td
style="text-align: center;"
>
<%=product.getDate.year%> -
<%=product.getDate.month%> -
<%=product.getDate.day%>
</td>
<td>
<%=product.description%>
-
<td
style="text-align: center;"
>
<%=product.description%>
</td>
<td>
<%=product.username%>
-
<td
style="text-align: center;"
>
<%=product.username%>
</td>
<td>
<td
style="text-align: center;"
>
<a href="/categori/products/delete/<%=product.id%>" class="btn btn-danger" onclick="return confirm('삭제하시겠습니까?')">삭제</a>
</td>
</tr>
...
...
views/category/productsDetail.ejs
View file @
6349bb2
<% include ../includes/header.ejs %>
<div class="panel panel-default">
<div class="panel-heading">
<%=product.title%>
<%=product.title%>
</div>
<div style="padding-bottom: 10px">
작성일 :
<br>
작성일 :
<%=product.getDate.year%> -
<%=product.getDate.month%> -
<%=product.getDate.day%>
</div>
<div>
<% var count=0; %>
보유중인 영상
※ 보유중인 영상<br><br>
<% for (var i in items[0]) { %>
<div>
<%=items[0][i]%>
<%=items[0][i]%>
</div>
<%count++;};%>
</div>
<div>
설명 : <%=product.description%
>
<br> 설명 : <%=product.description%><br><br
>
</div>
<form method="get" action="">
<div class="input-group">
...
...
@@ -48,24 +48,8 @@
<button class="btn btn-primary" style="margin-top: 10px; margin-left: 15px;" >영상담기</button>
</form>
<div class="panel-body">
<!-- 댓글영역 -->
<div>
댓글작성하기
<form id="commentForm" action="" method="post">
<input type="hidden" name="product_id" value="<%=product.id%>" />
<textarea class="form-control" name="content"></textarea>
<button class="btn btn-primary" style="margin-top: 10px" type="submit">댓글작성</button>
</form>
</div>
<!-- 댓글영역 -->
<hr />
<div id="comment_area">
<% comments.forEach(function(comment){ %>
<div>
<%=comment.content%>
( <a class='comment_delete' comment_id='<%=comment._id%>'>삭제</a> )
</div>
<% }); %>
</div>
</div>
</div>
...
...
views/home.ejs
View file @
6349bb2
<% include ./includes/header.ejs %>
<div
id="masonry_container
">
<div
style="background-color:lavenderblush
">
<% var count = 0; %>
<center>
<% for (var i in video) { %>
<div>
<div
style ="color:gray; font-weight:bold; font-size:2.0em;"
>
<%=video[i].category.title%>
</div>
<% for (var j in video[i].videos) { %>
<div id="<%=count%>" vid="<%=video[i].videos[j].video_id%>">
</div>
<%count++;};};%>
</center>
</div>
<style type="text/css">
...
...
@@ -48,19 +50,8 @@
height: '360',
width: '640',
videoId: videoIds[i],
events: {
// 'onReady': onPlayerReady,
// 'onStateChange': onPlayerStateChange
}
});
}
}
// function onPlayerReady(event) {
// }
// function onPlayerStateChange(event) {
// }
// function stopVideo() {
// }
</script>
<% include ./includes/footer.ejs %>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment