refactor: Thymeleafの警告をなくした

This commit is contained in:
usbharu 2024-08-24 12:13:21 +09:00
parent 7362d20565
commit 9b60099ad9
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
</head>
<body>
<noscript>
<div th:replace="fragments-timeline :: simple-timline(${timeline},'/home')"></div>
<div th:replace="~{fragments-timeline :: simple-timline(${timeline},'/home')}"></div>
</noscript>
</body>
</html>

View File

@ -20,24 +20,24 @@
<body>
<noscript>
<th:block th:if=" ${post.reply != null}">
<th:block th:replace="fragments-post :: single-simple-post(${post.reply})"></th:block>
<th:block th:replace="~{fragments-post :: single-simple-post(${post.reply})}"></th:block>
<hr>
</th:block>
<main>
<p th:if="${post.pureRepost}" th:text="#{post.repost-by(${post.actor.name})}">Repost by user</p>
<th:block th:unless="${post.pureRepost}">
<th:block th:replace="fragments-post :: single-simple-post(${post})"></th:block>
<th:block th:replace="fragments-post :: single-post-controller(${post})"></th:block>
<th:block th:replace="~{fragments-post :: single-simple-post(${post})}"></th:block>
<th:block th:replace="~{fragments-post :: single-post-controller(${post})}"></th:block>
</th:block>
<th:block th:if="${post.pureRepost}">
<th:block th:replace="fragments-post :: single-simple-post(${post.repost})"></th:block>
<th:block th:replace="fragments-post :: single-post-controller(${post.repost})"></th:block>
<th:block th:replace="~{fragments-post :: single-simple-post(${post.repost})}"></th:block>
<th:block th:replace="~{fragments-post :: single-post-controller(${post.repost})}"></th:block>
</th:block>
</main>
<th:block th:if="${post.repost != null && !post.pureRepost}">
<hr>
<th:block th:replace="fragments-post :: single-simple-post(${post.repost})"></th:block>
<th:block th:replace="={fragments-post :: single-simple-post(${post.repost})}"></th:block>
<cite th:text="${post.repost.apId}"></cite>
</th:block>
</noscript>