feat: Add a page with some information about the server

This commit is contained in:
Ginger
2026-05-20 10:40:32 -04:00
parent a0aeebd237
commit 4da00fa28a
14 changed files with 293 additions and 133 deletions
+12 -10
View File
@@ -9,16 +9,18 @@ Device information
<h1>About device <a class="back" href="{{ crate::ROUTE_PREFIX }}/account/">Back</a></h1>
{{ device_card }}
{% if let Some((client_metadata, _)) = client_metadata %}
<section>
<p>
{% if let Some(tos_uri) = &client_metadata.tos_uri %}
<a href="{{ tos_uri }}">Terms of service</a>
{% endif %}
{% if let Some(policy_uri) = &client_metadata.policy_uri %}
&bullet;&nbsp;<a href="{{ policy_uri }}">Policies</a>
{% endif %}
</p>
</section>
{% if client_metadata.tos_uri.is_some() || client_metadata.policy_uri.is_some() %}
<section>
<ul class="bullet-separated">
{% if let Some(tos_uri) = &client_metadata.tos_uri %}
<li><a href="{{ tos_uri }}">Terms of service</a></li>
{% endif %}
{% if let Some(policy_uri) = &client_metadata.policy_uri %}
<li><a href="{{ policy_uri }}">Policies</a></li>
{% endif %}
</ul>
</section>
{% endif %}
{% endif %}
<section>
<p>