68 lines
3.4 KiB
HTML
68 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
|
<th:block th:if="${comment.parentComment eq null}">
|
|
<div class="row justify-content-between mx-3 commentRow">
|
|
<input type="hidden" class="publicKey" th:value="${comment.publicKey}">
|
|
<input type="hidden" class="commentKey" th:value="${comment.commentKey}">
|
|
<div class="col-auto">
|
|
<div class="row">
|
|
<div class="col-auto" th:utext="${comment.comment}"></div>
|
|
<div class="col-auto">
|
|
<button type="button" class="btn btn-sm btn-success childCommentBtn">댓글달기</button>
|
|
</div>
|
|
<div class="col-auto" th:if="${userSeq eq comment.wrtUserSeq}">
|
|
<button type="button" class="btn btn-sm btn-danger deleteCommentBtn">댓글삭제</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
<div class="row">
|
|
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>
|
|
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>-->
|
|
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtUserGrd}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>
|
|
<div class="col-auto" th:text="${comment.wrtUserNm}"></div>
|
|
<div class="col-auto" th:text="${#temporals.format(comment.wrtDt, 'yyyy-MM-dd HH:mm')}"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 childCommentFormDiv py-1" style="display: none"></div>
|
|
</div>
|
|
<hr class="my-1">
|
|
</th:block>
|
|
<th:block th:unless="${comment.parentComment eq null}">
|
|
<div class="row justify-content-between commentRow my-1 mx-3">
|
|
<input type="hidden" class="publicKey" th:value="${comment.publicKey}">
|
|
<input type="hidden" class="commentKey" th:value="${comment.commentKey}">
|
|
<div class="col-auto">
|
|
<div class="row">
|
|
<div class="col-auto">
|
|
<i class="bi bi-arrow-return-right" ></i>
|
|
</div>
|
|
<div class="col-auto" th:utext="${comment.comment}"></div>
|
|
<div class="col-auto" th:if="${userSeq eq comment.wrtUserSeq}">
|
|
<button type="button" class="btn btn-sm btn-danger deleteCommentBtn">댓글삭제</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-auto">
|
|
<div class="row">
|
|
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>
|
|
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>-->
|
|
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
|
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtUserGrd}" th:text="${commonCode.itemValue}"></div>
|
|
</th:block>
|
|
<div class="col-auto" th:text="${comment.wrtUserNm}"></div>
|
|
<div class="col-auto" th:text="${#temporals.format(comment.wrtDt, 'yyyy-MM-dd HH:mm')}"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</th:block> |