-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymleaf.org"> | ||
|
||
<head th:replace="fragments/home_header::home_header"/> | ||
|
||
<body> | ||
|
||
<section class="content"> | ||
<div class="row"> | ||
|
||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">접속중인 유저</h3> | ||
</div> | ||
|
||
<div class="box-body" th:if="${accountList} != null"> | ||
<p>현재 접속중인 유저 수 : </p> | ||
<p th:text="${count}"></p> | ||
<table id="table"> | ||
<thead> | ||
<tr> | ||
<th>닉네임</th> | ||
<th>연결된 시각</th> | ||
<th>ip 주소</th> | ||
<th>접속중인 채팅방</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr th:each="account : ${accountList}"> | ||
<td th:text="${account.nickname}">닉네임</td> | ||
<td th:text="${account.created}">연결된 시각</td> | ||
|
||
<td th:if="${account.sessionIp}==null" th:text="${account.sessionIp}">ip</td> | ||
<td th:unless="${account.sessionIp}==null" th:text="null">ip</td> | ||
|
||
|
||
<td th:if="${account.chatRoom} != null" th:text="${account.chatRoom.type}">채팅방</td> | ||
<td th:unless="${account.chatRoom} != null" th:text="null">채팅방</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="box-body" th:unless="${accountList} != null" th:text="${isNull}"> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</section> | ||
</body> | ||
</html> |
13 changes: 13 additions & 0 deletions
13
src/main/resources/templates/fragments/connecting_header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head th:fragment="connecting_header"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
|
||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> | ||
|
||
<title>현재 연결된 유저 리스트</title> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters