<!--
  ~ Copyright (C) 2024 usbharu
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<th:block th:fragment="simple-timline(timelineObject,href)">
    <!--/*@thymesVar id="timelineObject" type="dev.usbharu.hideout.core.domain.model.support.page.PaginationList<dev.usbharu.hideout.core.application.model.PostDetail,dev.usbharu.hideout.core.domain.model.post.PostId>"*/-->
    <div th:if="${timelineObject.prev != null}">
        <a th:href="${href + '?min_id=' + timelineObject.prev.id}" th:text="#{common.paging-load}">Show more</a>
    </div>
    <div th:if="${timelineObject.isEmpty()}" th:text="#{common.empty}"></div>
    <div th:each="postDetail : ${timelineObject}">
        <th:block th:replace="~{fragments-post :: single-simple-post(${postDetail})}"></th:block>
        <th:block th:replace="~{fragments-post :: single-post-controller(${postDetail})}"></th:block>
    </div>
    <div th:if="${timelineObject.next != null}">
        <a th:href="${href + '?max_id=' + timelineObject.next.id}" th:text="#{common.paging-load}">Show more</a>
    </div>
</th:block>
</body>
</html>