diff --git a/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf b/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf new file mode 100644 index 0000000..0f8acfb --- /dev/null +++ b/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf @@ -0,0 +1,20 @@ +<%-- posts-empty.jspf — 포스팅 목록 빈 상태 파편 + 사용: posts-list.jsp의 posts.isEmpty() 분기에서 include + 필요: bibimbap.css (.empty-state 클래스) +--%> +
+ +

아직 등록된 포스트가 없어요

+

개발 일지, 팁, 질문 무엇이든 좋아요. 커뮤니티의 첫 글을 남겨보세요.

+
+ + 글쓰기 +
+
diff --git a/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf b/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf new file mode 100644 index 0000000..7d67819 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf @@ -0,0 +1,21 @@ +<%-- recruit-empty.jspf — 팀원 모집 목록 빈 상태 파편 + 사용: recruit-list.jsp의 recruitPosts.isEmpty() 분기에서 include + 필요: bibimbap.css (.empty-state 클래스) +--%> +
+ +

아직 올라온 모집글이 없어요

+

함께 만들 기획·아트·프로그래머를 찾고 있다면, 첫 모집글을 올려 팀을 시작해 보세요.

+
+ + 모집글 작성 + 필터 초기화 +
+
diff --git a/src/main/webapp/WEB-INF/views/posts-list.jsp b/src/main/webapp/WEB-INF/views/posts-list.jsp index f4c7ced..fb2c49e 100644 --- a/src/main/webapp/WEB-INF/views/posts-list.jsp +++ b/src/main/webapp/WEB-INF/views/posts-list.jsp @@ -240,7 +240,7 @@ <% if (posts.isEmpty()) { %> -
아직 등록된 포스트가 없습니다.
+ <%@ include file="fragments/posts-empty.jspf" %> <% } else { %>
<% for (PostData post : posts) { %> diff --git a/src/main/webapp/WEB-INF/views/recruit-list.jsp b/src/main/webapp/WEB-INF/views/recruit-list.jsp index 8da5e4f..5ec0dc3 100644 --- a/src/main/webapp/WEB-INF/views/recruit-list.jsp +++ b/src/main/webapp/WEB-INF/views/recruit-list.jsp @@ -315,7 +315,10 @@ } %>
-
" id="recruit-empty">아직 올라온 팀원 모집글이 없습니다.
+ <% if (recruitPosts.isEmpty()) { %> + <%@ include file="fragments/recruit-empty.jspf" %> + <% } %> +
아직 올라온 팀원 모집글이 없습니다.