Skip to content

Commit

Permalink
refactor: 도서 관리자 페이지 콤마 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
newjaehun committed Mar 26, 2024
1 parent 03e11f3 commit 37a294c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/resources/templates/admin/view/book/book.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
display: block;
margin: 0 auto;
}
.regular-cost {
text-decoration: line-through;
}
</style>
<script>
let url = "/admin/book"
Expand All @@ -34,7 +37,10 @@ <h5 class="card-title" th:text="${book.name}">도서명</h5>
</a>
<p>리뷰: <span th:text="${book.rate}">/5</span>(<span
th:text="(${book.reviewCount})"></span>)</p>
<p class="card-text" th:text="${book.saleCost == book.cost} ? '₩' + ${book.saleCost} : ('₩' + ${book.saleCost} + ' (' + ${book.cost} + ')')"></p>
<p class="card-text" th:text="${book.saleCost == book.cost} ?
${#numbers.formatInteger(book.saleCost, 1, 'COMMA')} + '원' :
(${#numbers.formatInteger(book.saleCost, 1, 'COMMA')} + '원 (원가: ' + ${#numbers.formatInteger(book.cost, 1, 'COMMA')} + '원)')">
</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 37a294c

Please sign in to comment.