fix: capitalize boolean values in HTML to match mockup

This commit is contained in:
NetworkCats
2026-03-02 20:14:55 +08:00
parent 21db94891c
commit bfc1e213b9
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -42,19 +42,19 @@
</tr>
<tr>
<td class="label">Proxy</td>
<td{% if is_proxy %} class="bool-true"{% endif %}>{{ is_proxy }}</td>
<td{% if is_proxy %} class="bool-true"{% endif %}>{% if is_proxy %}True{% else %}False{% endif %}</td>
</tr>
<tr>
<td class="label">VPN</td>
<td{% if is_vpn %} class="bool-true"{% endif %}>{{ is_vpn }}</td>
<td{% if is_vpn %} class="bool-true"{% endif %}>{% if is_vpn %}True{% else %}False{% endif %}</td>
</tr>
<tr>
<td class="label">Hosting</td>
<td{% if is_hosting %} class="bool-true"{% endif %}>{{ is_hosting }}</td>
<td{% if is_hosting %} class="bool-true"{% endif %}>{% if is_hosting %}True{% else %}False{% endif %}</td>
</tr>
<tr>
<td class="label">Tor</td>
<td{% if is_tor %} class="bool-true"{% endif %}>{{ is_tor }}</td>
<td{% if is_tor %} class="bool-true"{% endif %}>{% if is_tor %}True{% else %}False{% endif %}</td>
</tr>
</tbody>
</table>
+2
View File
@@ -214,6 +214,8 @@ async fn browser_returns_html() {
assert!(body.contains("45.77.77.77"));
assert!(body.contains("Piscataway"));
assert!(body.contains("AS20473"));
assert!(body.contains(">True<"));
assert!(body.contains(">False<"));
}
#[tokio::test]