list.ejs 2.28 KB
<!DOCTYPE html>
<html leng="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>묵호 - 놀이터</title>
        <!-- Favicon-->
        <link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
        <!-- Bootstrap icons-->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" type="text/css" />
        <!-- Google fonts-->
        <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
        <!-- Core theme CSS (includes Bootstrap)-->
        <link href="/css/styles.css?after" rel="stylesheet" />
    </head>
    <body>
        <!-- Navigation-->
        <nav class="navbar navbar-light bg-light static-top">
            <div class="container">
                <a class="navbar-brand" href="/main">묵호의 놀이터</a>
                <div class="user">
                    <a> <%= nickname %> 님 안녕하세요 </section></a>
                    <a class="btn btn-primary" href="/logout">로그아웃</a>
                </div>
            </div>
        </nav>
        <div class="container px-5 my-5">
            <h1><%= title %></h1>
            <a href="/board/write">글쓰기</a>
            <table border="1">
                <tr>
                    <td>번호</td>
                    <td>작성자</td>
                    <td>제목</td>
                    <td>조회수</td>
                    <td>수정일</td>
                    <td>등록일</td>
                </tr>
                <%
                for(var i=0; i<rows.length; i++)
                {
                    var data = rows[i];
                %>
                <tr>
                    <td><%=data.idx%></td>
                    <td><%=data.name%></td>
                    <td><a href="/board/read/<%=data.idx%>"><%=data.title%></a></td>
                    <td><%=data.hit%></td>
                    <td><%=data.modidate%></td>
                    <td><%=data.regdate%></td>
                </tr>
                <%}%>
            </table>
        </div>
    </body>
</html>