mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
40 lines
1.3 KiB
Django/Jinja
40 lines
1.3 KiB
Django/Jinja
<div class="card">
|
|
{{ avatar }}
|
|
<div class="info">
|
|
<div class="name">
|
|
<span>
|
|
{% if let Some(display_name) = display_name %}
|
|
{{ display_name }}
|
|
{% else %}
|
|
Unknown device
|
|
{% endif %}
|
|
</span>
|
|
{% if style == DeviceCardStyle::Detailed %}
|
|
<span class="id">
|
|
•
|
|
<ul class="bullet-separated">
|
|
<li>{{ device_id }}</li>
|
|
<li>
|
|
{% if let Some(metadata) = oauth_metadata %}
|
|
<a href="{{ metadata.client_uri }}">Client website</a>
|
|
{% else %}
|
|
legacy
|
|
{% endif %}
|
|
</li>
|
|
</span>
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
<div>
|
|
Last active: {{ last_active }}
|
|
</div>
|
|
<div>
|
|
{% if style == DeviceCardStyle::Detailed %}
|
|
<a href="{{ crate::ROUTE_PREFIX }}/account/device/{{ device_id }}/remove">Remove</a>
|
|
{% else %}
|
|
<a href="{{ crate::ROUTE_PREFIX }}/account/device/{{ device_id }}/">Details</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|