Skip to content

Commit 6526b45

Browse files
committed
fix: 아티클 내용 수정
1 parent 17935a3 commit 6526b45

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/com/davcatch/devcatch/web/controller/auth/AuthController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public String doVerify(@RequestParam String verifyCode, RedirectAttributes redir
8080

8181
@PostMapping("/leave")
8282
public String doLeave(String email) {
83-
log.info("{} -> 회원탈퇴 요청");
83+
log.info("{} -> 회원탈퇴 요청", email);
8484
authService.leave(email);
8585
return "redirect:/auth/goodbye";
8686
}
@@ -107,7 +107,7 @@ public String findPassword() {
107107

108108
@PostMapping("/find/password")
109109
public String doFindPassword(@RequestParam String email, RedirectAttributes redirectAttributes) {
110-
log.info("{} -> 비밀번호 찾기 요청");
110+
log.info("{} -> 비밀번호 찾기 요청", email);
111111
try {
112112
authService.findPassword(email);
113113
} catch (CustomException e) {

src/main/resources/templates/mail/newArticle.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 style="color: #0284c7; font-size: 20px; font-weight: 600; margin: 0;">새로
4242
<tr>
4343
<td>
4444
<h3 style="font-size: 18px; font-weight: 600; color: #0284c7; margin: 0 0 10px;" th:text="${article.title}">아티클 제목</h3>
45-
<p style="font-size: 15px; color: #4b5563; line-height: 1.6; margin: 0 0 12px;" th:text="${article.summary}">아티클 요약 내용입니다. 이곳에 아티클의 간략한 내용이 표시됩니다.</p>
45+
<p style="font-size: 15px; color: #4b5563; line-height: 1.6; margin: 0 0 12px;" th:text="${#strings.abbreviate(article.summary, 100)}">아티클 요약 내용입니다. 이곳에 아티클의 간략한 내용이 표시됩니다.</p>
4646

4747
<!-- 태그 영역 -->
4848
<p style="margin: 8px 0;" th:if="${article.articleTags}">
@@ -71,7 +71,7 @@ <h3 style="font-size: 18px; font-weight: 600; color: #0284c7; margin: 0 0 10px;"
7171
</p>
7272

7373
<!-- 구독 취소 폼 -->
74-
<form th:action="@{https://devcatch.site/devcatch/reg/leave}" th:method="post" style="margin: 0;">
74+
<form th:action="@{https://devcatch.site/auth/leave}" th:method="post" style="margin: 0;">
7575
<input type="hidden" name="email" th:value="${email}">
7676
<button type="submit" style="background: none; border: none; color: #94a3b8; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0;">
7777
구독 취소

src/main/resources/templates/web/contents/article_list_content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h4 class="text-lg font-semibold text-gray-900 leading-6">
9595
</h4>
9696

9797
<!-- 요약 -->
98-
<p class="mt-1 text-sm text-gray-500 leading-5 line-clamp-2" th:text="${article.summary}">
98+
<p class="mt-1 text-sm text-gray-500 leading-5 line-clamp-2" th:text="${#strings.abbreviate(article.summary, 100)}">
9999
아티클 요약 내용이 표시됩니다. 아티클의 주요 내용을 간략하게 소개하는 문장입니다.
100100
</p>
101101

src/main/resources/templates/web/contents/index_content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2 class="text-base text-primary-600 font-semibold tracking-wide uppercase">새
6565
</p>
6666
<a th:href="@{/article/detail/{id}(id=${article.id})}" class="block">
6767
<p class="text-xl font-semibold text-gray-900" th:text="${article.title}">아티클 제목</p>
68-
<p class="mt-3 text-base text-gray-500" th:text="${article.summary}">아티클 요약 내용</p>
68+
<p class="mt-3 text-base text-gray-500" th:text="${#strings.abbreviate(article.summary, 100)}">아티클 요약 내용</p>
6969
</a>
7070
</div>
7171
<!-- 작성자 정보 영역 -->

0 commit comments

Comments
 (0)