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

View File

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

View File

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

View File

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

View File

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