Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최시원
/
Singer-Composer
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
Mukho
2021-11-17 14:51:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9532a3864270268440a019bcb3aee4fb51093220
9532a386
1 parent
c8a66863
Fix error and add temp button
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
public/main.html
router/board/index.js
views/main.ejs
public/main.html
View file @
9532a38
...
...
@@ -45,11 +45,9 @@
<form
class=
"form-subscribe"
id=
"contactForm"
data-sb-form-api-token=
"API_TOKEN"
>
<!-- ID input-->
<div
class=
"row"
>
<div
class=
"col"
>
<input
class=
"form-control form-control-lg"
id=
"IDBelow"
type=
"text"
placeholder=
"ID"
data-sb-validations=
"required"
/>
<div
class=
"invalid-feedback text-white"
data-sb-feedback=
"IDBelow:required"
>
ID를 입력하세요.
</div>
<div
class=
"row"
>
<a
class=
"btn btn-primary"
href=
"/board/list"
>
임시게시판
</a>
</div>
<div
class=
"col-auto"
><button
class=
"btn btn-primary btn-lg disabled"
id=
"submitButton"
type=
"submit"
>
회원가입
</button></div>
</div>
<!-- Submit success message-->
<!---->
...
...
router/board/index.js
View file @
9532a38
...
...
@@ -14,9 +14,10 @@ router.get('/list/:page', function(req, res, next) {
board
.
query
(
sql
,
function
(
err
,
rows
)
{
if
(
err
)
console
.
error
(
"err : "
+
err
);
var
id
=
req
.
user
;
if
(
!
id
)
id
=
"수정예정"
res
.
render
(
'list.ejs'
,
{
'ID'
:
id
,
title
:
'게시판 리스트'
,
rows
:
rows
})
var
id
=
req
.
user
.
ID
;
var
nickname
=
req
.
user
.
nickname
;
if
(
!
id
)
nickname
=
"손님"
// 수정 예정
res
.
render
(
'list.ejs'
,
{
'ID'
:
id
,
'nickname'
:
nickname
,
title
:
'게시판 리스트'
,
rows
:
rows
})
})
});
...
...
views/main.ejs
View file @
9532a38
...
...
@@ -45,11 +45,7 @@
<form
class=
"form-subscribe"
id=
"contactForm"
data-sb-form-api-token=
"API_TOKEN"
>
<!-- ID input-->
<div
class=
"row"
>
<div
class=
"col"
>
<input
class=
"form-control form-control-lg"
id=
"IDBelow"
type=
"text"
placeholder=
"ID"
data-sb-validations=
"required"
/>
<div
class=
"invalid-feedback text-white"
data-sb-feedback=
"IDBelow:required"
>
ID를 입력하세요.
</div>
</div>
<div
class=
"col-auto"
><button
class=
"btn btn-primary btn-lg disabled"
id=
"submitButton"
type=
"submit"
>
회원가입
</button></div>
<a
class=
"btn btn-primary"
href=
"/board/list"
>
임시게시판
</a>
</div>
<!-- Submit success message-->
<!---->
...
...
Please
register
or
login
to post a comment