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

View File

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