feat: 一部のnoscriptタグを削除

This commit is contained in:
usbharu 2024-09-04 19:12:42 +09:00
parent 4f9c431d9b
commit 15cb1375c8
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
5 changed files with 28 additions and 35 deletions

View File

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

View File

@ -9,6 +9,7 @@
<th:block th:if="${image != null}">
<meta property="og:image" th:content="${image}">
</th:block>
<meta http-equiv="refresh" th:content="${'1; url='+nsUrl}">
</head>
<body>
<noscript>

View File

@ -8,7 +8,6 @@
</head>
<body>
<noscript>
<div>
<img alt="" height="80px" src="" th:src="${user.iconUrl}" width="80px">
<div style="display: inline-block">
@ -56,7 +55,6 @@
<input th:value="#{post-form.new-posts-submit}" type="submit" value="Publish!">
</div>
</form>
</noscript>
</body>
</html>

View File

@ -18,8 +18,8 @@
</head>
<body>
<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>
<hr>
</th:block>
@ -40,6 +40,5 @@
<th:block th:replace="={fragments-post :: single-simple-post(${post.repost})}"></th:block>
<cite th:text="${post.repost.apId}"></cite>
</th:block>
</noscript>
</body>
</html>

View File

@ -5,33 +5,30 @@
<title th:text="#{user-by-id.title(${user.screenName},${instance.name})}">User - hideout</title>
</head>
<body>
<noscript>
<div>
<img height="150px" th:src="${user.iconUrl}" width="150px" alt="">
<img height="150px" th:src="${user.bannerURL}" width="600px" alt="">
</div>
<div>
<th:block th:if="${user.locked}">
<h2 th:text="${user.screenName} + '(private)'"></h2>
</th:block>
<div>
<img alt="" height="150px" th:src="${user.iconUrl}" width="150px">
<img alt="" height="150px" th:src="${user.bannerURL}" width="600px">
</div>
<div>
<th:block th:if="${user.locked}">
<h2 th:text="${user.screenName} + '(private)'"></h2>
</th:block>
<th:block th:if="!${user.locked}">
<h2 th:text="${user.screenName}"></h2>
</th:block>
<p th:text="${user.name} + '@' + ${user.host}"></p>
</div>
<div>
<p th:text="${user.description}"></p>
</div>
<div>
<p th:if="user.postsCount != null" th:text="#{user-by-id.postsCount(${user.postsCount})}">0 Posts</p>
<p th:if="user.followingCount != null" th:text="#{user-by-id.followingCount(${user.followingCount})}">0
Following</p>
<p th:if="user.followersCount != null" th:text="#{user-by-id.followersCount(${user.followersCount})}">0
Followers</p>
</div>
<div th:replace="~{fragments-timeline :: simple-timline(${userTimeline},'/users/'+${user.name}+'@'+${user.host})}"></div>
</noscript>
<th:block th:if="!${user.locked}">
<h2 th:text="${user.screenName}"></h2>
</th:block>
<p th:text="${user.name} + '@' + ${user.host}"></p>
</div>
<div>
<p th:text="${user.description}"></p>
</div>
<div>
<p th:if="user.postsCount != null" th:text="#{user-by-id.postsCount(${user.postsCount})}">0 Posts</p>
<p th:if="user.followingCount != null" th:text="#{user-by-id.followingCount(${user.followingCount})}">0
Following</p>
<p th:if="user.followersCount != null" th:text="#{user-by-id.followersCount(${user.followersCount})}">0
Followers</p>
</div>
<div th:replace="~{fragments-timeline :: simple-timline(${userTimeline},'/users/'+${user.name}+'@'+${user.host})}"></div>
</body>
</html>